Function at 0x510f30
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 0x5b94c9
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x140
mov eax, dword [0x6360e8]
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 0x510fc2
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 0x510fc0
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 + 0x3c]
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 + 0x90]
jae 0x511046
mov ecx, dword [edx + 0x8c]
lea eax, [edx + 0x80]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x84]
add ecx, dword [eax + 4]
mov eax, dword [edx + 0x88]
dec eax
and ecx, eax
mov eax, dword [edx + 0x84]
mov edx, dword [eax + ecx*4]
mov eax, dword [ebp - 0x7c]
jmp 0x51104c
add edx, 0xb4
cmp dword [edx + 0x14], 8
jb 0x511054
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 0x5111ad
mov edx, ecx
mov dword [ebp - 0x78], edx
test eax, eax
jne 0x5110a0
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov word [ebp + eax*2 - 0x2c], cx
jmp 0x51119f
cmp eax, 7
ja 0x5110d1
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 0x511199
cmp eax, 0x7ffffffe
ja 0x511d42
mov edi, eax
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x5110f0
mov edi, SysReAllocString
jmp 0x5110fa
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 0x511d47
add ecx, ecx
cmp ecx, 0x1000
jb 0x511145
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x511d47
push eax
call fcn.00577033
add esp, 4
test eax, eax
je 0x511d4c
lea edx, [eax + 0x23]
and edx, 0xffffffe0
mov dword [edx - 4], eax
jmp 0x51115e
test ecx, ecx
je 0x51115c
push ecx
call fcn.00577033
add esp, 4
mov dword [ebp - 0xa4], eax
mov edx, eax
jmp 0x511164
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.0049eff0
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.004fe180
lea ecx, [ebp - 0xb0]
call fcn.0046fa10
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.00507130
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 0x5112a0
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 + 0x44]
mov eax, dword [ecx + 0xd0]
add ecx, 0xd0
call dword [eax + 0x20]
mov ecx, dword [sym.imp.GDI32.dll_GetTextMetricsW]
jmp 0x5112aa
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 0x51130c
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 + 0x44]
mov eax, dword [ecx + 0xd0]
add ecx, 0xd0
call dword [eax + 0x20]
mov eax, dword [ebp - 0xc0]
jmp 0x51130e
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 0x51132b
push dword [ebp - 0xb4]
call fcn.004fef50
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 0x51139e
movsd xmm0, qword [ebp - 0x58]
call fcn.005a08e0
movsd xmm0, qword [ebp - 0x50]
movzx edi, al
call fcn.005a08e0
movsd xmm0, qword [ebp - 0x48]
movzx esi, al
shl esi, 8
call fcn.005a08e0
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 0x5113cc
mov eax, dword [edi + 0x74]
cmp eax, dword [edi + 0x7c]
je 0x51178a
mov eax, dword [edi + 0x74]
cmp eax, dword [edi + 0x7c]
jb 0x511479
jne 0x5113e6
mov eax, dword [edi + 0x78]
cmp dword [edi + 0x70], eax
jb 0x511479
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 0x511516
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 0x511580
cmp eax, dword [ebp - 0x100]
jae 0x51157e
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 0x511794
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 0x5116d2
cmp dword [ebp - 0xdc], eax
jne 0x511748
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 0x51178d
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 0x51178d
mov edx, dword [ebp - 0xf0]
cmp dword [ebp - 0xb8], eax
jne 0x51174e
mov eax, dword [ebp - 0x84]
mov edx, dword [ebp - 0x7c]
mov eax, dword [eax]
add eax, edx
cmp dword [ebp - 0xf4], eax
jae 0x51178d
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 0x51173d
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 0x51178d
mov edx, dword [ebp - 0x98]
cmp edx, eax
jne 0x51178a
mov eax, dword [ebp - 0x84]
mov edx, dword [eax]
mov eax, dword [ebp - 0xa4]
cmp edx, eax
jae 0x51178a
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 0x51178d
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x80]
cmp ecx, eax
jne 0x5117a5
lea eax, [eax + edx*2]
mov edx, dword [ebp - 0x8c]
cmp edx, eax
jne 0x5117ab
mov al, 1
jmp 0x5117ad
mov edx, dword [ebp - 0x8c]
xor al, al
mov byte [ebp - 0x71], al
test ecx, ecx
je 0x511ae9
test edx, edx
je 0x511ae9
test al, al
jne 0x511ae9
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0xcc], ecx
cmp eax, ecx
je 0x511c86
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.0046de10
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 0x511ab7
cmp esi, dword [ebp - 0x10c]
jge 0x511ab7
mov ecx, dword [ebp - 0x94]
mov edx, dword [ecx]
cmp dword [ebp - 0x8c], edx
jbe 0x511a96
mov eax, dword [ebp - 0xa0]
cmp dword [ecx + 4], eax
jbe 0x511a96
lea esi, [ecx + 4]
cmp eax, edx
ja 0x51189d
mov eax, dword [esi]
cmp eax, dword [ebp - 0x8c]
ja 0x51189d
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.00510c60
mov byte [ebp - 0x71], 1
jmp 0x511ab7
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 0x5118e2
mov eax, esi
sub eax, edx
sar eax, 1
mov dword [ebp - 0x80], eax
jmp 0x5118e9
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.0046dec0
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.005139a0
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.005139a0
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 0x511981
push dword [ebp - 0xb4]
call fcn.004fef50
mov edx, dword [ebp - 0x104]
mov eax, dword [ebp - 0x94]
cmp dword [eax + 8], 0
je 0x5119c6
test byte [eax + 0xc], 1
je 0x5119c6
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.00510d30
jmp 0x511a70
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.005107e0
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.00510c60
mov eax, dword [ebp - 0xe0]
mov edx, dword [ebp - 0xb8]
mov ecx, dword [eax]
cmp edx, ecx
jae 0x511a70
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.005107e0
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 0x511ab7
push eax
call fcn.005772e5
add esp, 4
jmp 0x511ab7
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.005107e0
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 0x5117f0
jmp 0x511c12
mov ecx, dword [ebp - 0x128]
mov edi, dword [ebp - 0x12c]
mov dword [ebp - 0x78], ecx
cmp edi, ecx
je 0x511c12
test al, al
je 0x511b88
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.0046de10
mov edx, dword [eax]
mov eax, dword [ebp - 0x88]
lea ecx, [esi + edx]
mov dword [ebp - 0x9c], ecx
cmp ecx, dword [eax + 0x3c]
jle 0x511b73
cmp esi, dword [ebp - 0x10c]
jge 0x511b73
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.00510c60
mov ecx, dword [ebp - 0x9c]
add edi, 0x10
mov esi, ecx
mov dword [ebp - 0x114], esi
cmp edi, dword [ebp - 0x78]
jne 0x511b08
jmp 0x511c12
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.0046de10
mov ecx, dword [eax]
mov eax, dword [ebp - 0x88]
add ecx, esi
mov dword [ebp - 0x9c], ecx
cmp ecx, dword [eax + 0x3c]
jle 0x511c04
cmp esi, dword [ebp - 0x10c]
jge 0x511c04
cmp dword [edi + 8], 0
je 0x511bdb
test byte [edi + 0xc], 1
je 0x511bdb
mov cl, 1
jmp 0x511bdd
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.005107e0
mov ecx, dword [ebp - 0x9c]
add edi, 0x10
mov esi, ecx
cmp edi, dword [ebp - 0x78]
jne 0x511b88
cmp byte [ebp - 0x71], 0
je 0x511c86
mov edx, dword [ebp - 0x84]
mov eax, dword [edx]
add eax, dword [ebp - 0x7c]
cmp dword [ebp - 0xa4], eax
jne 0x511c36
mov eax, dword [ebp - 0xbc]
cmp dword [edx + 4], eax
je 0x511c86
mov edi, dword [ebp - 0x88]
lea eax, [ebp - 0x114]
push 1
push 0x5fa578
push eax
mov ecx, dword [edi + 8]
call fcn.0046de10
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.0046f210
lea ecx, [ebp - 0x120]
call fcn.004b6760
mov edx, dword [ebp - 0x12c]
test edx, edx
je 0x511cec
mov ecx, dword [ebp - 0x124]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff0
cmp ecx, 0x1000
jb 0x511cc4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x511d4c
push ecx
push edx
call fcn.005772b4
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 0x511d22
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x511d18
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x511d4c
push ecx
push edx
call fcn.005772b4
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.00577025
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14
call fcn.004015dd
call fcn.00401539
call fcn.0057c388
int3