Function at 0x40286f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x5796e0
sub esp, 0x168
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 4]
mov dword [esp], ecx
je 0x579e9d
push ebx
push ebp
push esi
mov esi, dword [esp + 0x178]
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
push edi
call eax
mov ecx, dword [esi + 8]
mov edi, dword [ecx + 0x18]
mov ebx, 1
mov dword [esp + 0x24], eax
lea esi, [edi + edi]
mov edx, 0xfffffffd
sub edx, esi
lea eax, [edi - 4]
mov dword [esp + 0x3c], eax
xor ebp, ebp
mov dword [esp + 0x28], edx
lea edx, [edi + edi*2]
mov eax, 2
sub eax, edx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], eax
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xc4], ebp
lea eax, [edi - 1]
mov ebp, 0xfffffffe
sub ebp, edx
mov dword [esp + 0x84], eax
lea eax, [edi - 2]
lea edx, [edi - 3]
lea ecx, [edi - 5]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe0], edx
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xec], ebx
mov dword [esp + 0xf0], edx
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf8], ebx
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x17c]
mov dword [esp + 0x100], edx
mov edx, 0xfffffffe
add eax, 0x1c
sub edx, esi
mov dword [esp + 0x128], ecx
mov dword [esp + 0x158], ecx
mov ecx, dword [esp + 0x180]
add edi, 0xfffffffa
push eax
mov dword [esp + 0x100], ebx
mov dword [esp + 0x108], ebx
mov dword [esp + 0x10c], ebx
mov dword [esp + 0x110], ebx
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], edx
mov dword [esp + 0x120], ebx
mov dword [esp + 0x124], ebx
mov dword [esp + 0x128], ebx
mov dword [esp + 0x130], ebx
mov dword [esp + 0x134], ebx
mov dword [esp + 0x138], ebx
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x140], ebx
mov dword [esp + 0x144], edi
mov dword [esp + 0x148], ebx
mov dword [esp + 0x14c], ebx
mov dword [esp + 0x150], ebx
mov dword [esp + 0x154], ebx
mov dword [esp + 0x158], ebx
mov dword [esp + 0x160], ebx
mov dword [esp + 0x164], ebx
mov dword [esp + 0x168], ebx
call fcn.004036b1
mov ebp, dword [esp + 0x10]
mov esi, dword [ebp + 4]
cmp esi, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
je 0x579e88
jmp 0x579976
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 0x10]
shl esi, 4
mov edx, dword [ecx + esi + 0xc]
mov eax, dword [ecx + esi]
add ecx, esi
mov ecx, dword [ecx + 4]
lea edi, [ecx - 2]
sub ecx, edi
mov dword [esp + 0x20], edx
lea edx, [eax - 2]
sub eax, edx
add ecx, 2
add eax, 2
mov dword [esp + 0x174], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x170], eax
mov eax, dword [ecx]
cmp edx, eax
jl 0x579e64
mov ecx, dword [ecx + 8]
add ecx, eax
mov eax, dword [esp + 0x170]
add eax, edx
cmp eax, ecx
jg 0x579e64
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
cmp edi, eax
jl 0x579e64
mov edx, ecx
mov ecx, dword [edx + 0xc]
mov edx, dword [esp + 0x174]
add ecx, eax
add edx, edi
cmp edx, ecx
jg 0x579e64
mov edi, dword [ebp + 0x10]
add edi, esi
test byte [0x781998], bl
jne 0x579a14
or dword [0x781998], ebx
xor eax, eax
mov dword [0x781990], eax
mov dword [0x78198c], eax
mov eax, dword [esp + 0x180]
cmp dword [eax + 0x48], 0
je 0x579a4d
fild dword [edi]
fsub dword [eax + 0x24]
fmul dword [eax + 0x50]
call fcn.006519c0
mov ebp, eax
mov eax, dword [esp + 0x180]
mov dword [0x78198c], ebp
fild dword [edi + 4]
fsub dword [eax + 0x28]
fmul dword [eax + 0x50]
call fcn.006519c0
jmp 0x579a60
mov ebp, dword [edi]
mov ecx, eax
sub ebp, dword [ecx + 0x30]
mov dword [0x78198c], ebp
mov eax, dword [edi + 4]
sub eax, dword [ecx + 0x34]
mov ecx, dword [esp + 0x17c]
mov dword [0x781990], eax
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
add ecx, eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x10]
mov esi, dword [esi + eax + 8]
add edx, ebp
cmp esi, 4
ja 0x579e60
imul ecx, dword [esp + 0x1c]
lea eax, [esi + esi*4]
shl eax, 4
add ecx, dword [esp + eax + 0x28]
add ecx, edx
cmp dword [esp + 0x20], 0xfa
mov edx, dword [esp + 0x24]
lea edx, [edx + ecx*2]
jle 0x579c5b
mov cx, word [edx]
shr cx, 1
and cx, 0x7bef
mov word [edx], cx
mov ecx, dword [esp + eax + 0x2c]
lea ecx, [edx + ecx*2]
movzx edx, word [ecx]
shr dx, 1
and dx, 0x7bef
mov word [ecx], dx
mov edx, dword [esp + eax + 0x30]
lea ecx, [ecx + edx*2]
movzx edx, word [ecx]
shr dx, 1
and dx, 0x7bef
mov word [ecx], dx
mov edx, dword [esp + eax + 0x34]
lea ecx, [ecx + edx*2]
movzx edx, word [ecx]
shr dx, 1
and dx, 0x7bef
mov word [ecx], dx
mov edx, dword [esp + eax + 0x38]
lea ecx, [ecx + edx*2]
movzx edx, word [ecx]
shr dx, 1
and dx, 0x7bef
mov word [ecx], dx
mov edx, dword [esp + eax + 0x3c]
lea ecx, [ecx + edx*2]
movzx edx, word [ecx]
shr dx, 1
and dx, 0x7bef
mov word [ecx], dx
mov edx, dword [esp + eax + 0x40]
lea ecx, [ecx + edx*2]
movzx edx, word [ecx]
shr dx, 1
and dx, 0x7bef
mov word [ecx], dx
mov edx, dword [esp + eax + 0x44]
lea ecx, [ecx + edx*2]
movzx edx, word [ecx]
shr dx, 1
and dx, 0x7bef
mov word [ecx], dx
mov edx, dword [esp + eax + 0x48]
lea ecx, [ecx + edx*2]
movzx edx, word [ecx]
shr dx, 1
and dx, 0x7bef
mov word [ecx], dx
mov edx, dword [esp + eax + 0x4c]
lea ecx, [ecx + edx*2]
movzx edx, word [ecx]
shr dx, 1
and dx, 0x7bef
mov word [ecx], dx
mov edx, dword [esp + eax + 0x50]
lea ecx, [ecx + edx*2]
movzx edx, word [ecx]
shr dx, 1
and dx, 0x7bef
mov word [ecx], dx
mov edx, dword [esp + eax + 0x54]
lea ecx, [ecx + edx*2]
movzx edx, word [ecx]
shr dx, 1
and dx, 0x7bef
mov word [ecx], dx
mov edx, dword [esp + eax + 0x58]
lea ecx, [ecx + edx*2]
movzx edx, word [ecx]
shr dx, 1
and dx, 0x7bef
mov word [ecx], dx
mov edx, dword [esp + eax + 0x5c]
lea ecx, [ecx + edx*2]
movzx edx, word [ecx]
shr dx, 1
and dx, 0x7bef
mov word [ecx], dx
mov edx, dword [esp + eax + 0x60]
lea ecx, [ecx + edx*2]
movzx edx, word [ecx]
shr dx, 1
and dx, 0x7bef
mov word [ecx], dx
mov edx, dword [esp + eax + 0x64]
lea ecx, [ecx + edx*2]
movzx edx, word [ecx]
shr dx, 1
and dx, 0x7bef
mov word [ecx], dx
mov edx, dword [esp + eax + 0x68]
lea ecx, [ecx + edx*2]
movzx edx, word [ecx]
shr dx, 1
and dx, 0x7bef
mov word [ecx], dx
mov edx, dword [esp + eax + 0x6c]
lea ecx, [ecx + edx*2]
movzx edx, word [ecx]
shr dx, 1
and dx, 0x7bef
mov word [ecx], dx
mov edx, dword [esp + eax + 0x70]
test edx, edx
je 0x579e60
mov eax, dword [esp + eax + 0x74]
lea ecx, [ecx + edx*2]
movzx edx, word [ecx]
shr dx, 1
and dx, 0x7bef
mov word [ecx], dx
movzx edx, word [ecx + eax*2]
lea ecx, [ecx + eax*2]
shr dx, 1
and dx, 0x7bef
mov word [ecx], dx
jmp 0x579e60
movzx ecx, word [edx]
mov esi, ecx
shr esi, 2
and esi, 0x39e7
sub ecx, esi
mov word [edx], cx
mov ecx, dword [esp + eax + 0x2c]
lea edx, [edx + ecx*2]
movzx ecx, word [edx]
mov esi, ecx
shr esi, 2
and esi, 0x39e7
sub ecx, esi
mov word [edx], cx
mov ecx, dword [esp + eax + 0x30]
lea edx, [edx + ecx*2]
movzx ecx, word [edx]
mov esi, ecx
shr esi, 2
and esi, 0x39e7
sub ecx, esi
mov word [edx], cx
mov ecx, dword [esp + eax + 0x34]
lea edx, [edx + ecx*2]
movzx ecx, word [edx]
mov esi, ecx
shr esi, 2
and esi, 0x39e7
sub ecx, esi
mov word [edx], cx
mov ecx, dword [esp + eax + 0x38]
lea edx, [edx + ecx*2]
movzx ecx, word [edx]
mov esi, ecx
shr esi, 2
and esi, 0x39e7
sub ecx, esi
mov word [edx], cx
mov ecx, dword [esp + eax + 0x3c]
lea edx, [edx + ecx*2]
movzx ecx, word [edx]
mov esi, ecx
shr esi, 2
and esi, 0x39e7
sub ecx, esi
mov word [edx], cx
mov ecx, dword [esp + eax + 0x40]
lea edx, [edx + ecx*2]
movzx ecx, word [edx]
mov esi, ecx
shr esi, 2
and esi, 0x39e7
sub ecx, esi
mov word [edx], cx
mov ecx, dword [esp + eax + 0x44]
lea edx, [edx + ecx*2]
movzx ecx, word [edx]
mov esi, ecx
shr esi, 2
and esi, 0x39e7
sub ecx, esi
mov word [edx], cx
mov ecx, dword [esp + eax + 0x48]
lea edx, [edx + ecx*2]
movzx ecx, word [edx]
mov esi, ecx
shr esi, 2
and esi, 0x39e7
sub ecx, esi
mov word [edx], cx
mov ecx, dword [esp + eax + 0x4c]
lea edx, [edx + ecx*2]
movzx ecx, word [edx]
mov esi, ecx
shr esi, 2
and esi, 0x39e7
sub ecx, esi
mov word [edx], cx
mov ecx, dword [esp + eax + 0x50]
lea edx, [edx + ecx*2]
movzx ecx, word [edx]
mov esi, ecx
shr esi, 2
and esi, 0x39e7
sub ecx, esi
mov word [edx], cx
mov ecx, dword [esp + eax + 0x54]
lea edx, [edx + ecx*2]
movzx ecx, word [edx]
mov esi, ecx
shr esi, 2
and esi, 0x39e7
sub ecx, esi
mov word [edx], cx
mov ecx, dword [esp + eax + 0x58]
lea edx, [edx + ecx*2]
movzx ecx, word [edx]
mov esi, ecx
shr esi, 2
and esi, 0x39e7
sub ecx, esi
mov word [edx], cx
mov ecx, dword [esp + eax + 0x5c]
lea edx, [edx + ecx*2]
movzx ecx, word [edx]
mov esi, ecx
shr esi, 2
and esi, 0x39e7
sub ecx, esi
mov word [edx], cx
mov ecx, dword [esp + eax + 0x60]
lea edx, [edx + ecx*2]
movzx ecx, word [edx]
mov esi, ecx
shr esi, 2
and esi, 0x39e7
sub ecx, esi
mov word [edx], cx
mov ecx, dword [esp + eax + 0x64]
lea edx, [edx + ecx*2]
movzx ecx, word [edx]
mov esi, ecx
shr esi, 2
and esi, 0x39e7
sub ecx, esi
mov word [edx], cx
mov ecx, dword [esp + eax + 0x68]
lea edx, [edx + ecx*2]
movzx ecx, word [edx]
mov esi, ecx
shr esi, 2
and esi, 0x39e7
sub ecx, esi
mov word [edx], cx
mov ecx, dword [esp + eax + 0x6c]
lea edx, [edx + ecx*2]
movzx ecx, word [edx]
mov esi, ecx
shr esi, 2
and esi, 0x39e7
sub ecx, esi
mov word [edx], cx
mov ecx, dword [esp + eax + 0x70]
test ecx, ecx
je 0x579e60
mov eax, dword [esp + eax + 0x74]
lea edx, [edx + ecx*2]
movzx ecx, word [edx]
mov esi, ecx
shr esi, 2
and esi, 0x39e7
sub ecx, esi
mov word [edx], cx
lea ecx, [edx + eax*2]
movzx eax, word [ecx]
mov edx, eax
shr edx, 2
and edx, 0x39e7
sub eax, edx
mov word [ecx], ax
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add eax, ebx
cmp eax, dword [ebp]
mov dword [esp + 0x14], eax
jne 0x579e7b
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
cmp eax, dword [ebp + 8]
jne 0x579972
mov ecx, dword [esp + 0x17c]
mov ecx, dword [ecx + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x168
ret 8