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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
or ebx, 0xffffffff
cmp ecx, ebx
mov esi, eax
mov dword [esp + 0x24], edi
je 0x5664c9
mov edx, dword [0x851c30]
mov edx, dword [edx + 0x34]
mov eax, ecx
and eax, 0xffff
lea eax, [eax + eax*2]
mov eax, dword [edx + eax*4 + 8]
mov edx, dword [0x86cff4]
mov dword [esp + 0x44], eax
mov eax, dword [eax]
and eax, 0xffff
shl eax, 5
mov eax, dword [eax + edx + 0x14]
push 0x10
lea edx, [esp + 0xa4]
push edx
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0xc]
push ebx
push eax
push ecx
call fcn.00565ce0
add esp, 0x14
cmp esi, ebx
mov dword [esp + 0x34], eax
mov eax, ebx
je 0x565f4a
mov edx, dword [0x86b824]
mov eax, dword [edx + 0x34]
and esi, 0xffff
lea ecx, [esi + esi*2]
mov eax, dword [eax + ecx*4 + 8]
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x565f48
mov edx, dword [0x86b828]
and eax, 0xffff
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x34]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0x28], ecx
jmp 0x565f4a
mov eax, ebx
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x5664c9
jmp 0x565f60
mov eax, dword [esp + 0x10]
mov edx, dword [0x851c30]
and eax, 0xffff
lea edi, [eax + eax*2]
mov eax, dword [edx + 0x34]
shl edi, 2
mov esi, dword [eax + edi + 8]
mov cl, byte [esi + 0xb4]
mov edx, 1
shl edx, cl
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], esi
test dl, 3
je 0x566487
mov eax, dword [esp + 0x44]
test byte [eax + 0x106], 4
jne 0x566487
xor eax, eax
cmp word [esp + 0x34], ax
mov dword [esp + 0x20], eax
jle 0x566487
lea esp, [esp]
movsx ecx, ax
xor eax, eax
mov ax, word [esp + ecx*2 + 0xa0]
cmp ax, bx
mov dword [esp + 0x4c], eax
je 0x566460
mov edx, dword [esp + 0x48]
mov ecx, dword [edx + 0x2e8]
movsx eax, ax
imul eax, eax, 0x11c
add eax, ecx
cmp word [esi + 0xb4], 1
je 0x566015
push 0
add eax, 4
push 0
push eax
mov eax, dword [esp + 0x1c]
call fcn.00560ba0
add esp, 0xc
test al, al
je 0x566460
cmp dword [esi + 0x11c], ebx
je 0x566447
cmp word [esi + 0x2f0], bx
je 0x56643f
cmp word [0x70b460], 1
je 0x56643f
mov eax, dword [0x851c30]
mov ecx, dword [eax + 0x34]
mov ebx, dword [ecx + edi + 8]
mov edx, dword [ebx + 0x11c]
cmp edx, 0xffffffff
mov dword [esp + 0x1c], edx
je 0x5663bb
cmp word [ebx + 0x2f0], 0xffff
je 0x5663bb
mov ecx, dword [eax + 0x34]
mov eax, edx
and eax, 0xffff
lea eax, [eax + eax*2]
mov esi, dword [ecx + eax*4 + 8]
mov ecx, dword [ecx + edi + 8]
movsx edi, word [ecx + 0x1f2]
mov eax, dword [esi]
add edi, ecx
push 1
and eax, 0xffff
lea ecx, [esp + 0xc4]
push ecx
mov ecx, dword [0x86cff4]
shl eax, 5
mov eax, dword [eax + ecx + 0x14]
movsx ecx, word [ebx + 0x2f0]
mov eax, dword [eax + 0x2e8]
imul ecx, ecx, 0x11c
lea ecx, [eax + ecx + 0x24]
push ecx
push edx
call fcn.004f1c60
mov edx, dword [ebx]
mov eax, dword [0x86cff4]
fld dword [edi + 0x28]
fsub dword [esp + 0x130]
and edx, 0xffff
shl edx, 5
mov ecx, dword [edx + eax + 0x14]
mov edx, dword [ecx + 0x34]
fstp dword [esp + 0x60]
fld dword [edi + 0x2c]
and edx, 0xffff
fsub dword [esp + 0x134]
shl edx, 5
mov eax, dword [edx + eax + 0x14]
mov eax, dword [eax + 0xbc]
lea ecx, [eax + 0x68]
fstp dword [esp + 0x64]
fld dword [edi + 0x30]
mov edi, dword [esp + 0x20]
fsub dword [esp + 0x138]
add eax, 0x28
mov edx, dword [eax]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 4]
fstp dword [esp + 0x68]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov eax, dword [esi + 0x324]
add esp, 0x10
cmp eax, edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
jne 0x566165
cmp byte [esi + 0x2a3], 0x25
je 0x566165
mov eax, dword [ebx + 0x11c]
cmp eax, 0xffffffff
je 0x566165
push 0x25
push eax
call fcn.00561950
add esp, 8
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x6eb40c]
mov dword [ebx + 0x32c], eax
cmp dword [ebx + 0x324], edi
mov edx, dword [ecx + 0xc]
mov dword [ebx + 0x330], edx
jne 0x566190
mov dword [ebx + 0x324], 0xffffffff
cmp dword [ebx + 0x328], edi
jne 0x5661a2
mov dword [ebx + 0x328], 0xffffffff
push edi
call fcn.004f21f0
fld dword [esp + 0x54]
fadd dword [ebx + 0x5c]
add esp, 4
push 0
push 0
fstp dword [esp + 0x64]
push edi
fld dword [esp + 0x60]
lea edi, [esp + 0x68]
fadd dword [ebx + 0x60]
fstp dword [esp + 0x6c]
fld dword [esp + 0x64]
fadd dword [ebx + 0x64]
fsub dword [esp + 0x4c]
fstp dword [esp + 0x70]
call fcn.004f0da0
mov eax, dword [0x851c30]
mov ecx, dword [eax + 0x34]
mov edi, dword [esp + 0x20]
mov eax, dword [ecx + edi + 8]
mov ecx, dword [esp + 0x38]
add esp, 0xc
lea edx, [esp + 0x68]
push edx
movsx edx, word [eax + 0x1f2]
push ecx
add edx, eax
push edx
call dword [0x690454]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
lea eax, [ebx + 0x74]
mov dword [eax], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
lea edx, [ebx + 0x80]
mov dword [edx], eax
mov eax, dword [esp + 0x98]
mov dword [edx + 4], ecx
mov ecx, dword [0x851c30]
mov dword [edx + 8], eax
mov edx, dword [ecx + 0x34]
mov edi, dword [edx + edi + 8]
mov eax, dword [edi]
mov ecx, dword [0x86cff4]
and eax, 0xffff
shl eax, 5
mov eax, dword [eax + ecx + 0x14]
mov edx, dword [eax + 0x34]
or ecx, 0xffffffff
add esp, 0xc
cmp edx, ecx
mov dword [esp + 0x2c], eax
je 0x5662b1
test byte [edi + 0x10], 1
je 0x566297
mov eax, dword [esp + 0x10]
push 1
push 0
call fcn.004f5600
mov eax, dword [esp + 0x34]
add esp, 8
or ecx, 0xffffffff
cmp dword [eax + 0x34], ecx
je 0x5662b1
mov edx, dword [0x851c30]
mov eax, dword [edx + 0x34]
add eax, dword [esp + 0x14]
and dword [edi + 0x10], 0xfffffffe
or byte [eax + 2], 2
mov edi, dword [esp + 0x10]
mov word [ebx + 0x2f0], cx
mov byte [ebx + 0x2a7], 2
cmp dword [esi + 0x324], edi
jne 0x5662d1
mov dword [esi + 0x324], ecx
cmp dword [esi + 0x328], edi
jne 0x5662df
mov dword [esi + 0x328], ecx
mov eax, dword [esp + 0x1c]
call fcn.00568800
mov esi, edi
call fcn.00569070
mov esi, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], 0x14
mov byte [esp + 0x1d], 0
call fcn.00560de0
movsx eax, word [ebx + 0x1ea]
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x20]
lea ecx, [eax + ebx + 0x10]
mov eax, dword [esp + 0x40]
mov dword [ecx], edx
mov edx, dword [esp + 0x44]
mov dword [ecx + 4], eax
add esp, 4
mov dword [ecx + 8], edx
cmp word [ebx + 0xb4], 0
jne 0x566340
push esi
call fcn.005567b0
add esp, 4
push esi
call fcn.004f3e90
add esp, 4
mov eax, edi
call fcn.005622d0
cmp al, 1
jne 0x566373
push 2
mov ecx, edi
call fcn.004f2aa0
add esp, 4
test eax, eax
je 0x566373
mov ecx, dword [0x6eb40c]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x5ac], edx
cmp word [0x70b460], 1
jne 0x5663b3
mov edx, dword [ebx + 0x218]
mov esi, dword [0x86b840]
call fcn.004ce9c0
xor ecx, ecx
cmp eax, ecx
je 0x5663b3
cmp word [eax + 2], 0xffff
jne 0x5663b3
mov dword [eax + 0x190], ecx
mov dword [eax + 0x18c], ecx
mov dword [eax + 0x1f0], ecx
mov dword [eax + 0x1ec], ecx
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x14]
mov eax, dword [ebx + 4]
test eax, eax
jne 0x5663d0
mov ecx, dword [esp + 0x10]
push 1
call fcn.00567d40
add esp, 4
cmp word [0x70b460], 1
jne 0x56643c
mov ebx, dword [ebx + 0x218]
cmp ebx, 0xffffffff
je 0x56643c
mov edx, ebx
sar edx, 0x10
test bx, bx
jl 0x56643c
mov ecx, dword [0x86b840]
cmp bx, word [ecx + 0x20]
jge 0x56643c
movsx eax, word [ecx + 0x22]
movsx ebx, bx
imul eax, ebx
mov ebx, dword [ecx + 0x34]
mov cx, word [eax + ebx]
add eax, ebx
test cx, cx
je 0x56643c
test dx, dx
je 0x56641d
cmp cx, dx
jne 0x56643c
cmp word [eax + 2], 0xffff
je 0x56643c
mov eax, dword [0x70e020]
test eax, eax
je 0x56643c
mov eax, dword [eax + 0xb84]
push eax
call fcn.004e2d00
add esp, 4
or ebx, 0xffffffff
cmp dword [esi + 0x11c], ebx
jne 0x566460
mov ecx, dword [esp + 0x4c]
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x10]
push ecx
push edx
call fcn.00562330
add esp, 8
test al, al
jne 0x566476
mov eax, dword [esp + 0x20]
inc eax
cmp ax, word [esp + 0x34]
mov dword [esp + 0x20], eax
jl 0x565fc0
jmp 0x566487
movsx eax, word [esp + 0x20]
mov word [esp + eax*2 + 0xa0], bx
inc dword [esp + 0x24]
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x5664af
mov edx, dword [0x86b828]
and eax, 0xffff
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x34]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0x28], ecx
jmp 0x5664b1
mov eax, ebx
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x565f60
mov ax, word [esp + 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ax, di
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret