Function at 0x56a8f0
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 0x56af29
mov edx, dword [0x85ff50]
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 [0x87b7b4]
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.0056a740
add esp, 0x14
cmp esi, ebx
mov dword [esp + 0x34], eax
mov eax, ebx
je 0x56a9aa
mov edx, dword [0x87a004]
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 0x56a9a8
mov edx, dword [0x87a008]
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 0x56a9aa
mov eax, ebx
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x56af29
jmp 0x56a9c0
mov eax, dword [esp + 0x10]
mov edx, dword [0x85ff50]
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 0x56aee7
mov eax, dword [esp + 0x44]
test byte [eax + 0x106], 4
jne 0x56aee7
xor eax, eax
cmp word [esp + 0x34], ax
mov dword [esp + 0x20], eax
jle 0x56aee7
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 0x56aec0
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 0x56aa75
push 0
add eax, 4
push 0
push eax
mov eax, dword [esp + 0x1c]
call fcn.00565610
add esp, 0xc
test al, al
je 0x56aec0
cmp dword [esi + 0x11c], ebx
je 0x56aea7
cmp word [esi + 0x2f0], bx
je 0x56ae9f
cmp word [0x719648], 1
je 0x56ae9f
mov eax, dword [0x85ff50]
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 0x56ae1b
cmp word [ebx + 0x2f0], 0xffff
je 0x56ae1b
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 [0x87b7b4]
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.004f6220
mov edx, dword [ebx]
mov eax, dword [0x87b7b4]
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 0x56abc5
cmp byte [esi + 0x2a3], 0x25
je 0x56abc5
mov eax, dword [ebx + 0x11c]
cmp eax, 0xffffffff
je 0x56abc5
push 0x25
push eax
call fcn.005663c0
add esp, 8
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x6f1c94]
mov dword [ebx + 0x32c], eax
cmp dword [ebx + 0x324], edi
mov edx, dword [ecx + 0xc]
mov dword [ebx + 0x330], edx
jne 0x56abf0
mov dword [ebx + 0x324], 0xffffffff
cmp dword [ebx + 0x328], edi
jne 0x56ac02
mov dword [ebx + 0x328], 0xffffffff
push edi
call fcn.004f67b0
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.004f5360
mov eax, dword [0x85ff50]
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 [0x696664]
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 [0x85ff50]
mov dword [edx + 8], eax
mov edx, dword [ecx + 0x34]
mov edi, dword [edx + edi + 8]
mov eax, dword [edi]
mov ecx, dword [0x87b7b4]
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 0x56ad11
test byte [edi + 0x10], 1
je 0x56acf7
mov eax, dword [esp + 0x10]
push 1
push 0
call fcn.004f9bc0
mov eax, dword [esp + 0x34]
add esp, 8
or ecx, 0xffffffff
cmp dword [eax + 0x34], ecx
je 0x56ad11
mov edx, dword [0x85ff50]
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 0x56ad31
mov dword [esi + 0x324], ecx
cmp dword [esi + 0x328], edi
jne 0x56ad3f
mov dword [esi + 0x328], ecx
mov eax, dword [esp + 0x1c]
call fcn.0056d260
mov esi, edi
call fcn.0056dad0
mov esi, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], 0x14
mov byte [esp + 0x1d], 0
call fcn.00565850
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 0x56ada0
push esi
call fcn.0055b200
add esp, 4
push esi
call fcn.004f8450
add esp, 4
mov eax, edi
call fcn.00566d40
cmp al, 1
jne 0x56add3
push 2
mov ecx, edi
call fcn.004f7060
add esp, 4
test eax, eax
je 0x56add3
mov ecx, dword [0x6f1c94]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x5ac], edx
cmp word [0x719648], 1
jne 0x56ae13
mov edx, dword [ebx + 0x218]
mov esi, dword [0x87a020]
call fcn.004d06c0
xor ecx, ecx
cmp eax, ecx
je 0x56ae13
cmp word [eax + 2], 0xffff
jne 0x56ae13
mov dword [eax + 0x180], ecx
mov dword [eax + 0x17c], ecx
mov dword [eax + 0x1e0], ecx
mov dword [eax + 0x1dc], ecx
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x14]
mov eax, dword [ebx + 4]
test eax, eax
jne 0x56ae30
mov ecx, dword [esp + 0x10]
push 1
call fcn.0056c7a0
add esp, 4
cmp word [0x719648], 1
jne 0x56ae9c
mov ebx, dword [ebx + 0x218]
cmp ebx, 0xffffffff
je 0x56ae9c
mov edx, ebx
sar edx, 0x10
test bx, bx
jl 0x56ae9c
mov ecx, dword [0x87a020]
cmp bx, word [ecx + 0x20]
jge 0x56ae9c
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 0x56ae9c
test dx, dx
je 0x56ae7d
cmp cx, dx
jne 0x56ae9c
cmp word [eax + 2], 0xffff
je 0x56ae9c
mov eax, dword [0x71c200]
test eax, eax
je 0x56ae9c
mov eax, dword [eax + 0xf48]
push eax
call fcn.004e70b0
add esp, 4
or ebx, 0xffffffff
cmp dword [esi + 0x11c], ebx
jne 0x56aec0
mov ecx, dword [esp + 0x4c]
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x10]
push ecx
push edx
call fcn.00566da0
add esp, 8
test al, al
jne 0x56aed6
mov eax, dword [esp + 0x20]
inc eax
cmp ax, word [esp + 0x34]
mov dword [esp + 0x20], eax
jl 0x56aa20
jmp 0x56aee7
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 0x56af0f
mov edx, dword [0x87a008]
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 0x56af11
mov eax, ebx
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x56a9c0
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