Function at 0x56e080
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 0x56e6b9
mov edx, dword [0x7fb2d0]
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 [0x816d04]
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.0056ded0
add esp, 0x14
cmp esi, ebx
mov dword [esp + 0x34], eax
mov eax, ebx
je 0x56e13a
mov edx, dword [0x8154c4]
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 0x56e138
mov edx, dword [0x8154c8]
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 0x56e13a
mov eax, ebx
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x56e6b9
jmp 0x56e150
mov eax, dword [esp + 0x10]
mov edx, dword [0x7fb2d0]
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 0x56e677
mov eax, dword [esp + 0x44]
test byte [eax + 0x106], 4
jne 0x56e677
xor eax, eax
cmp word [esp + 0x34], ax
mov dword [esp + 0x20], eax
jle 0x56e677
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 0x56e650
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 0x56e205
push 0
add eax, 4
push 0
push eax
mov eax, dword [esp + 0x1c]
call fcn.00568b60
add esp, 0xc
test al, al
je 0x56e650
cmp dword [esi + 0x11c], ebx
je 0x56e637
cmp word [esi + 0x2f0], bx
je 0x56e62f
cmp word [0x6b46e8], 1
je 0x56e62f
mov eax, dword [0x7fb2d0]
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 0x56e5ab
cmp word [ebx + 0x2f0], 0xffff
je 0x56e5ab
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 [0x816d04]
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.004f9b30
mov edx, dword [ebx]
mov eax, dword [0x816d04]
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 0x56e355
cmp byte [esi + 0x2a3], 0x25
je 0x56e355
mov eax, dword [ebx + 0x11c]
cmp eax, 0xffffffff
je 0x56e355
push 0x25
push eax
call fcn.00569910
add esp, 8
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x68cca8]
mov dword [ebx + 0x32c], eax
cmp dword [ebx + 0x324], edi
mov edx, dword [ecx + 0xc]
mov dword [ebx + 0x330], edx
jne 0x56e380
mov dword [ebx + 0x324], 0xffffffff
cmp dword [ebx + 0x328], edi
jne 0x56e392
mov dword [ebx + 0x328], 0xffffffff
push edi
call fcn.004fa0c0
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.004f8c70
mov eax, dword [0x7fb2d0]
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 [0x631c54]
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 [0x7fb2d0]
mov dword [edx + 8], eax
mov edx, dword [ecx + 0x34]
mov edi, dword [edx + edi + 8]
mov eax, dword [edi]
mov ecx, dword [0x816d04]
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 0x56e4a1
test byte [edi + 0x10], 1
je 0x56e487
mov eax, dword [esp + 0x10]
push 1
push 0
call fcn.004fd4d0
mov eax, dword [esp + 0x34]
add esp, 8
or ecx, 0xffffffff
cmp dword [eax + 0x34], ecx
je 0x56e4a1
mov edx, dword [0x7fb2d0]
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 0x56e4c1
mov dword [esi + 0x324], ecx
cmp dword [esi + 0x328], edi
jne 0x56e4cf
mov dword [esi + 0x328], ecx
mov eax, dword [esp + 0x1c]
call fcn.005709f0
mov esi, edi
call fcn.00571260
mov esi, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], 0x14
mov byte [esp + 0x1d], 0
call fcn.00568da0
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 0x56e530
push esi
call fcn.0055e750
add esp, 4
push esi
call fcn.004fbd60
add esp, 4
mov eax, edi
call fcn.0056a290
cmp al, 1
jne 0x56e563
push 2
mov ecx, edi
call fcn.004fa970
add esp, 4
test eax, eax
je 0x56e563
mov ecx, dword [0x68cca8]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x5ac], edx
cmp word [0x6b46e8], 1
jne 0x56e5a3
mov edx, dword [ebx + 0x218]
mov esi, dword [0x8154e0]
call fcn.004d3a80
xor ecx, ecx
cmp eax, ecx
je 0x56e5a3
cmp word [eax + 2], 0xffff
jne 0x56e5a3
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 0x56e5c0
mov ecx, dword [esp + 0x10]
push 1
call fcn.0056ff30
add esp, 4
cmp word [0x6b46e8], 1
jne 0x56e62c
mov ebx, dword [ebx + 0x218]
cmp ebx, 0xffffffff
je 0x56e62c
mov edx, ebx
sar edx, 0x10
test bx, bx
jl 0x56e62c
mov ecx, dword [0x8154e0]
cmp bx, word [ecx + 0x20]
jge 0x56e62c
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 0x56e62c
test dx, dx
je 0x56e60d
cmp cx, dx
jne 0x56e62c
cmp word [eax + 2], 0xffff
je 0x56e62c
mov eax, dword [0x6b72a0]
test eax, eax
je 0x56e62c
mov eax, dword [eax + 0xf88]
push eax
call fcn.004ea9d0
add esp, 4
or ebx, 0xffffffff
cmp dword [esi + 0x11c], ebx
jne 0x56e650
mov ecx, dword [esp + 0x4c]
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x10]
push ecx
push edx
call fcn.0056a2f0
add esp, 8
test al, al
jne 0x56e666
mov eax, dword [esp + 0x20]
inc eax
cmp ax, word [esp + 0x34]
mov dword [esp + 0x20], eax
jl 0x56e1b0
jmp 0x56e677
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 0x56e69f
mov edx, dword [0x8154c8]
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 0x56e6a1
mov eax, ebx
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x56e150
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