Function at 0x51add0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c4e59
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x140
mov eax, dword [0x6510e8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x88], edi
cmp dword [edi + 0x30], 0
mov eax, dword [ebx + 0xc]
mov esi, dword [edi + 0x3c]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x84], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x94], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0xf0]
je 0x51ae62
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [ebp - 0x94]
sub eax, dword [ecx + 8]
cmp dword [edi + 0x30], 1
jne 0x51ae60
cdq
sub eax, edx
sar eax, 1
add esi, eax
mov edx, dword [edi]
mov eax, dword [edx + 0x174]
mov eax, dword [eax]
sub esi, dword [eax + 0x40]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x110], eax
mov eax, dword [edi + 0x44]
add eax, dword [edi + 0x3c]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x114], esi
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ecx + 4]
cmp ecx, dword [edx + 0x94]
jae 0x51aee6
mov ecx, dword [edx + 0x90]
lea eax, [edx + 0x84]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x84]
add ecx, dword [eax + 4]
mov eax, dword [edx + 0x8c]
dec eax
and ecx, eax
mov eax, dword [edx + 0x88]
mov edx, dword [eax + ecx*4]
mov eax, dword [ebp - 0x7c]
jmp 0x51aeec
add edx, 0xb8
cmp dword [edx + 0x14], 8
jb 0x51aef4
mov edx, dword [edx]
mov ecx, dword [ebp - 0x78]
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
lea ecx, [edx + ecx*2]
mov dword [ebp - 0x80], ecx
xor ecx, ecx
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], ecx
movzx ecx, word [edi + 0x14]
test cx, cx
je 0x51b04d
mov edx, ecx
mov dword [ebp - 0x78], edx
test eax, eax
jne 0x51af40
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov word [ebp + eax*2 - 0x2c], cx
jmp 0x51b03f
cmp eax, 7
ja 0x51af71
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x2c]
mov ecx, eax
mov eax, edx
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov ecx, dword [ebp - 0x7c]
xor eax, eax
mov word [ebp + ecx*2 - 0x2c], ax
jmp 0x51b039
cmp eax, 0x7ffffffe
ja 0x51bbe2
mov edi, eax
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x51af90
mov edi, SysReAllocString
jmp 0x51af9a
mov eax, 0xa
cmp edi, eax
cmovb edi, eax
xor ecx, ecx
mov eax, edi
add eax, 1
setb cl
neg ecx
or ecx, eax
cmp ecx, 0x7fffffff
ja 0x51bbe7
add ecx, ecx
cmp ecx, 0x1000
jb 0x51afe5
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x51bbe7
push eax
call fcn.00581343
add esp, 4
test eax, eax
je 0x51bbec
lea edx, [eax + 0x23]
and edx, 0xffffffe0
mov dword [edx - 4], eax
jmp 0x51affe
test ecx, ecx
je 0x51affc
push ecx
call fcn.00581343
add esp, 4
mov dword [ebp - 0xa4], eax
mov edx, eax
jmp 0x51b004
xor edx, edx
mov dword [ebp - 0xa4], edx
mov ecx, dword [ebp - 0x7c]
mov eax, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x18], edi
mov edi, edx
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
xor edx, edx
rep stosw word es:[edi], ax
mov ecx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0x7c]
mov word [ecx + eax*2], dx
mov dword [ebp - 0x2c], ecx
mov edi, dword [ebp - 0x88]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x80], eax
mov ecx, dword [edi + 4]
call fcn.004aae20
xorps xmm0, xmm0
mov dword [ebp - 0xa8], 0
movq qword [ebp - 0xb0], xmm0
mov byte [ebp - 0xf8], al
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
push dword [ebp - 0x7c]
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 1
push dword [ebp - 0x80]
lea ecx, [ebp - 0xb0]
push eax
call fcn.005086d0
lea ecx, [ebp - 0xb0]
call fcn.0047d900
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x120]
mov eax, dword [edi]
add eax, 0x158
push eax
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
call fcn.00510f70
mov eax, dword [edi + 8]
mov ecx, dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x51b140
lea edx, [ebp - 0x70]
push edx
push dword [eax]
call ecx
mov eax, dword [edi]
mov edx, dword [eax + 0x174]
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x6c]
mov dword [ebp - 0xfc], eax
mov eax, dword [edx]
push dword [ebp - 0xfc]
mov ecx, dword [eax + 0x48]
mov eax, dword [ecx + 0xd0]
add ecx, 0xd0
call dword [eax + 0x20]
mov ecx, dword [sym.imp.GDI32.dll_GetTextMetricsW]
jmp 0x51b14a
mov dword [ebp - 0xfc], 0
mov eax, dword [edi + 8]
lea edx, [ebp - 0x120]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x134], edx
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x51b1ac
lea edx, [ebp - 0x70]
push edx
push dword [eax]
call ecx
mov eax, dword [edi]
mov edx, dword [eax + 0x174]
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x6c]
mov dword [ebp - 0xc0], eax
mov eax, dword [edx]
push dword [ebp - 0xc0]
mov ecx, dword [eax + 0x48]
mov eax, dword [ecx + 0xd0]
add ecx, 0xd0
call dword [eax + 0x20]
mov eax, dword [ebp - 0xc0]
jmp 0x51b1ae
xor eax, eax
mov dword [ebp - 0x130], eax
mov eax, dword [edi + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x51b1cb
push dword [ebp - 0xb4]
call fcn.005094a0
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov eax, dword [eax + 0x1c]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
movups xmm0, xmmword [eax + 0x10]
mov eax, dword [ecx]
movups xmmword [ebp - 0x48], xmm0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x78], eax
test eax, eax
je 0x51b23e
movsd xmm0, qword [ebp - 0x58]
call fcn.005aacc0
movsd xmm0, qword [ebp - 0x50]
movzx edi, al
call fcn.005aacc0
movsd xmm0, qword [ebp - 0x48]
movzx esi, al
shl esi, 8
call fcn.005aacc0
mov edx, dword [ebp - 0x78]
movzx ecx, al
mov eax, edi
shl eax, 0x10
or eax, ecx
shl ecx, 0x10
or eax, esi
or ecx, esi
mov esi, dword [ebp - 0x90]
or ecx, edi
mov edi, dword [ebp - 0x88]
mov dword [edx + 0x28], eax
mov dword [edx + 0x30], ecx
mov eax, dword [edi + 0x78]
xor ecx, ecx
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xbc], ecx
cmp dword [edi + 0x70], eax
jne 0x51b26c
mov eax, dword [edi + 0x74]
cmp eax, dword [edi + 0x7c]
je 0x51b62a
mov eax, dword [edi + 0x74]
cmp eax, dword [edi + 0x7c]
jb 0x51b319
jne 0x51b286
mov eax, dword [edi + 0x78]
cmp dword [edi + 0x70], eax
jb 0x51b319
mov eax, dword [edi + 0x7c]
mov edx, dword [edi + 0x78]
mov ecx, dword [edi + 0x74]
mov esi, dword [edi + 0x70]
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xb8], eax
mov eax, ecx
mov dword [ebp - 0xc0], edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0x100], ecx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x104], ecx
xor ecx, ecx
mov dword [ebp - 0xd0], edx
mov dword [ebp - 0xe4], edx
mov dword [ebp - 0xd8], edx
mov dword [ebp - 0xf4], edx
mov edx, dword [edi + 0x7c]
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x140], esi
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0xec], esi
jmp 0x51b3b6
mov eax, dword [edi + 0x70]
mov esi, dword [edi + 0x7c]
mov edx, dword [edi + 0x74]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0x14c], eax
mov eax, dword [edi + 0x78]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x140], eax
mov eax, esi
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xf4], eax
mov eax, esi
mov dword [ebp - 0x148], edx
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0x78], edx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xc8], edx
mov dword [ebp - 0xdc], edx
mov dword [ebp - 0xb8], edx
mov esi, dword [ebp - 0x90]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 4]
cmp edx, eax
jae 0x51b420
cmp eax, dword [ebp - 0x100]
jae 0x51b41e
mov eax, dword [ebp - 0x94]
mov esi, dword [ebp - 0x94]
mov edx, dword [ebp - 0x80]
mov ecx, edx
mov dword [ebp - 0xa0], ecx
mov eax, dword [eax + 4]
sub eax, dword [esi]
mov esi, dword [ebp - 0x90]
lea eax, [edx + eax*2]
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x8c], eax
mov eax, ecx
jmp 0x51b634
cmp edx, eax
mov edi, dword [ebp - 0x98]
cmovae edi, dword [ebp - 0xcc]
mov dword [ebp - 0x98], edi
mov edi, dword [ebp - 0xf0]
cmovae edi, dword [ebp - 0xd4]
mov dword [ebp - 0xf0], edi
mov edi, dword [ebp - 0xf4]
cmovae edi, dword [ebp - 0xd8]
mov dword [ebp - 0xf4], edi
mov edi, edx
cmovae edi, dword [ebp - 0xb8]
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0xb8], edi
mov edi, dword [ebp - 0xec]
cmovae edi, dword [ebp - 0xe0]
cmovae edx, dword [ebp - 0x78]
mov dword [ebp - 0xec], edi
mov edi, dword [ebp - 0xe8]
cmovae edi, dword [ebp - 0x140]
mov dword [ebp - 0xe8], edi
mov edi, dword [ebp - 0xe4]
cmovae edi, dword [ebp - 0xd0]
mov dword [ebp - 0xe4], edi
mov edi, dword [ebp - 0xdc]
cmovae edi, dword [ebp - 0xc8]
mov dword [ebp - 0xdc], edi
mov edi, dword [ebp - 0x104]
cmovae edi, dword [ebp - 0x9c]
cmp edx, edi
mov edi, dword [ebp - 0x88]
jne 0x51b572
cmp dword [ebp - 0xdc], eax
jne 0x51b5e8
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x84]
mov edx, dword [eax]
lea eax, [ebp - 0x14c]
cmp dword [ebp - 0xe4], edx
mov edx, dword [ebp - 0x7c]
cmovb eax, dword [ebp - 0x84]
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
mov eax, dword [ecx]
mov ecx, 0
add eax, edx
cmp dword [ebp - 0xe8], eax
cmovb eax, dword [ebp - 0xec]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0x78], eax
jae 0x51b62d
mov esi, dword [ebp - 0x84]
mov edi, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x80]
sub ecx, dword [esi]
mov esi, dword [ebp - 0xa8]
sub esi, dword [edi]
mov edi, dword [ebp - 0x88]
lea ecx, [eax + ecx*2]
mov dword [ebp - 0xa0], ecx
lea eax, [eax + esi*2]
mov esi, dword [ebp - 0x90]
mov dword [ebp - 0x8c], eax
jmp 0x51b62d
mov edx, dword [ebp - 0xf0]
cmp dword [ebp - 0xb8], eax
jne 0x51b5ee
mov eax, dword [ebp - 0x84]
mov edx, dword [ebp - 0x7c]
mov eax, dword [eax]
add eax, edx
cmp dword [ebp - 0xf4], eax
jae 0x51b62d
mov esi, dword [ebp - 0x84]
mov eax, dword [ebp - 0x80]
mov ecx, eax
mov dword [ebp - 0xa0], ecx
mov edi, dword [esi]
cmp edi, dword [ebp - 0xc0]
mov esi, dword [ebp - 0x90]
mov edi, dword [ebp - 0x88]
jae 0x51b5dd
mov edi, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xc0]
sub ecx, dword [edi]
mov edi, dword [ebp - 0x88]
lea ecx, [eax + ecx*2]
mov dword [ebp - 0xa0], ecx
lea eax, [eax + edx*2]
mov dword [ebp - 0x8c], eax
jmp 0x51b62d
mov edx, dword [ebp - 0x98]
cmp edx, eax
jne 0x51b62a
mov eax, dword [ebp - 0x84]
mov edx, dword [eax]
mov eax, dword [ebp - 0xa4]
cmp edx, eax
jae 0x51b62a
mov ecx, dword [ebp - 0x80]
sub eax, edx
mov edx, dword [ebp - 0x7c]
mov esi, ecx
cmp edx, eax
mov dword [ebp - 0xa0], ecx
cmovb eax, edx
lea eax, [esi + eax*2]
mov esi, dword [ebp - 0x90]
mov dword [ebp - 0x8c], eax
jmp 0x51b62d
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x80]
cmp ecx, eax
jne 0x51b645
lea eax, [eax + edx*2]
mov edx, dword [ebp - 0x8c]
cmp edx, eax
jne 0x51b64b
mov al, 1
jmp 0x51b64d
mov edx, dword [ebp - 0x8c]
xor al, al
mov byte [ebp - 0x71], al
test ecx, ecx
je 0x51b989
test edx, edx
je 0x51b989
test al, al
jne 0x51b989
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0xcc], ecx
cmp eax, ecx
je 0x51bb26
nop dword [eax + eax]
lea ecx, [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0xe0], ecx
mov ecx, dword [ecx]
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x144]
mov dword [ebp - 0x98], ecx
mov ecx, dword [edi + 8]
push eax
call fcn.0047bd00
mov byte [ebp - 0x71], 0
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
add eax, esi
mov dword [ebp - 0xd4], eax
cmp eax, dword [edi + 0x3c]
jle 0x51b957
cmp esi, dword [ebp - 0x10c]
jge 0x51b957
mov ecx, dword [ebp - 0x94]
mov edx, dword [ecx]
cmp dword [ebp - 0x8c], edx
jbe 0x51b936
mov eax, dword [ebp - 0xa0]
cmp dword [ecx + 4], eax
jbe 0x51b936
lea esi, [ecx + 4]
cmp eax, edx
ja 0x51b73d
mov eax, dword [esi]
cmp eax, dword [ebp - 0x8c]
ja 0x51b73d
push dword [ebp - 0xf8]
lea eax, [ebp - 0x114]
push dword [ebp - 0x98]
lea ecx, [ebp - 0x13c]
push edx
push dword [ebp - 0x78]
push eax
call fcn.0051ab00
mov byte [ebp - 0x71], 1
jmp 0x51b957
cmp dword [ebp - 0xa0], edx
lea eax, [ebp - 0xa0]
cmovb eax, ecx
mov ecx, dword [esi]
cmp ecx, dword [ebp - 0x8c]
mov eax, dword [eax]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0x8c]
cmovb eax, esi
mov esi, dword [ebp - 0xa8]
mov ecx, dword [eax]
mov dword [ebp - 0xb8], ecx
cmp esi, edx
je 0x51b782
mov eax, esi
sub eax, edx
sar eax, 1
mov dword [ebp - 0x80], eax
jmp 0x51b789
mov dword [ebp - 0x80], 0
mov eax, ecx
sub esp, 8
mov ecx, dword [edi + 8]
sub eax, esi
sar eax, 1
mov dword [ebp - 0x9c], eax
mov eax, esp
mov dword [eax], edx
mov edx, dword [ebp - 0x98]
mov dword [eax + 4], edx
lea eax, [ebp - 0xc8]
push eax
call fcn.0047bdb0
mov eax, dword [ebp - 0x80]
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0xc8]
mov ecx, esi
push 0
lea edi, [esi + eax*4]
mov edx, edi
call fcn.0051d9c0
mov dword [ebp - 0xa8], eax
add esp, 4
mov eax, dword [ebp - 0x80]
mov ecx, edi
add eax, dword [ebp - 0x9c]
mov dword [ebp - 0xd8], eax
push 0
lea edx, [esi + eax*4]
call fcn.0051d9c0
mov edi, dword [ebp - 0x88]
add esp, 4
mov edx, eax
mov dword [ebp - 0x104], edx
mov ecx, dword [edi + 8]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x51b821
push dword [ebp - 0xb4]
call fcn.005094a0
mov edx, dword [ebp - 0x104]
mov eax, dword [ebp - 0x94]
cmp dword [eax + 8], 0
je 0x51b866
test byte [eax + 0xc], 1
je 0x51b866
push dword [ebx + 8]
mov esi, dword [ebp - 0x90]
mov ecx, dword [ebp - 0xa8]
push esi
push dword [ebp - 0xf8]
push edx
push ecx
push dword [ebp - 0x78]
lea ecx, [ebp - 0x13c]
push dword [ebp - 0x98]
push dword [eax]
call fcn.0051abd0
jmp 0x51b910
push dword [ebx + 8]
mov esi, dword [ebp - 0x90]
mov ecx, edi
push esi
push dword [ebp - 0x80]
push dword [eax]
lea eax, [ebp - 0x120]
push dword [ebp - 0xb4]
push 0
push eax
call fcn.0051a680
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x94]
push dword [ebp - 0xf8]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xa8]
push dword [ebp - 0x9c]
add eax, esi
mov esi, dword [ebp - 0x104]
mov dword [ebp - 0xc4], eax
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x80]
lea eax, [eax + ecx*2]
push eax
push esi
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x13c]
call fcn.0051ab00
mov eax, dword [ebp - 0xe0]
mov edx, dword [ebp - 0xb8]
mov ecx, dword [eax]
cmp edx, ecx
jae 0x51b910
push dword [ebx + 8]
mov eax, dword [ebp - 0xc4]
sub ecx, edx
add eax, esi
sar ecx, 1
push eax
push ecx
push edx
push dword [ebp - 0xb4]
lea eax, [ebp - 0x120]
mov ecx, edi
push 0
push eax
call fcn.0051a680
mov eax, dword [ebp - 0xd8]
cmp eax, dword [ebp - 0x7c]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xc8]
sete byte [ebp - 0x71]
test eax, eax
je 0x51b957
push eax
call fcn.005815f5
add esp, 4
jmp 0x51b957
push dword [ebx + 8]
lea eax, [ebp - 0x120]
mov ecx, edi
push esi
push dword [ebp - 0x98]
push edx
push dword [ebp - 0xb4]
push 0
push eax
call fcn.0051a680
mov eax, dword [ebp - 0x94]
mov esi, dword [ebp - 0xd4]
add eax, 0x10
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x94], eax
cmp eax, dword [ebp - 0xcc]
jne 0x51b690
jmp 0x51bab2
mov ecx, dword [ebp - 0x128]
mov edi, dword [ebp - 0x12c]
mov dword [ebp - 0x78], ecx
cmp edi, ecx
je 0x51bab2
test al, al
je 0x51ba28
mov eax, dword [edi]
mov ecx, dword [edi + 4]
sub ecx, eax
sar ecx, 1
push ecx
mov dword [ebp - 0xa8], ecx
mov ecx, dword [ebp - 0x88]
push eax
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ecx + 8]
call fcn.0047bd00
mov edx, dword [eax]
mov eax, dword [ebp - 0x88]
lea ecx, [esi + edx]
mov dword [ebp - 0x9c], ecx
cmp ecx, dword [eax + 0x3c]
jle 0x51ba13
cmp esi, dword [ebp - 0x10c]
jge 0x51ba13
push dword [ebp - 0xf8]
lea eax, [ebp - 0x114]
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x13c]
push dword [edi]
push edx
push eax
call fcn.0051ab00
mov ecx, dword [ebp - 0x9c]
add edi, 0x10
mov esi, ecx
mov dword [ebp - 0x114], esi
cmp edi, dword [ebp - 0x78]
jne 0x51b9a8
jmp 0x51bab2
mov eax, dword [edi]
mov ecx, dword [edi + 4]
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0xa8], ecx
push eax
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax + 8]
call fcn.0047bd00
mov ecx, dword [eax]
mov eax, dword [ebp - 0x88]
add ecx, esi
mov dword [ebp - 0x9c], ecx
cmp ecx, dword [eax + 0x3c]
jle 0x51baa4
cmp esi, dword [ebp - 0x10c]
jge 0x51baa4
cmp dword [edi + 8], 0
je 0x51ba7b
test byte [edi + 0xc], 1
je 0x51ba7b
mov cl, 1
jmp 0x51ba7d
xor cl, cl
push dword [ebx + 8]
push esi
push dword [ebp - 0xa8]
push dword [edi]
push dword [ebp - 0xb4]
push ecx
lea ecx, [ebp - 0x120]
push ecx
mov ecx, eax
call fcn.0051a680
mov ecx, dword [ebp - 0x9c]
add edi, 0x10
mov esi, ecx
cmp edi, dword [ebp - 0x78]
jne 0x51ba28
cmp byte [ebp - 0x71], 0
je 0x51bb26
mov edx, dword [ebp - 0x84]
mov eax, dword [edx]
add eax, dword [ebp - 0x7c]
cmp dword [ebp - 0xa4], eax
jne 0x51bad6
mov eax, dword [ebp - 0xbc]
cmp dword [edx + 4], eax
je 0x51bb26
mov edi, dword [ebp - 0x88]
lea eax, [ebp - 0x114]
push 1
push 0x6142c0
push eax
mov ecx, dword [edi + 8]
call fcn.0047bd00
mov ecx, dword [ebx + 8]
push 1
mov dword [ebp - 0x138], ecx
mov eax, dword [eax]
mov ecx, dword [edi + 8]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x13c]
push eax
mov dword [ebp - 0x13c], esi
call fcn.0047d160
lea ecx, [ebp - 0x120]
call fcn.004c1360
mov edx, dword [ebp - 0x12c]
test edx, edx
je 0x51bb8c
mov ecx, dword [ebp - 0x124]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff0
cmp ecx, 0x1000
jb 0x51bb64
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51bbec
push ecx
push edx
call fcn.005815c4
add esp, 8
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x51bbc2
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x51bbb8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51bbec
push ecx
push edx
call fcn.005815c4
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00581335
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14
call fcn.004015ed
call fcn.00401549
call fcn.00586698
int3