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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x56b4d7
sub esp, 0x48
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ecx, dword [ecx + 0x18]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
test ecx, ecx
jne 0x56b4a0
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x2c], ebx
mov edx, dword [esp + 0x4c]
mov edi, dword [edx + 0x98]
test edi, edi
jbe 0x56b483
dec edi
mov dword [edx + 0x98], edi
mov edi, dword [edx + 0xa0]
mov dword [esp + 0x28], edi
test edi, edi
mov eax, esi
xchg esi, ebx
sete bl
xchg esi, ebx
mov ecx, ebx
setg bl
mov edi, dword [edx + 0x9c]
test edi, edi
seta dl
and esi, edx
or ebx, esi
test bl, bl
je 0x56b462
mov edx, edi
sub edi, ebp
mov ebx, dword [esp + 0x4c]
mov dword [ebx + 0x9c], edi
mov esi, ebp
sar ebp, 0x1f
sub edx, esi
mov edx, dword [esp + 0x28]
sbb edx, ebp
mov dword [ebx + 0xa0], edx
movzx edx, byte [esp + 0x50]
test dl, dl
je 0x56b0d3
test esi, esi
jbe 0x56b4cd
cmp byte [ecx], 0x14
jne 0x56b400
test esi, esi
jbe 0x56b4c4
cmp byte [ecx], 0x14
jne 0x56b3e0
mov eax, dword [ebx + 0xb0]
mov dword [esp + 0x34], eax
lea ecx, [0x5b0aa0]
mov dword [esp], ecx
call fcn.0040b910
mov eax, dword [esp + 4]
mov dword [esp + 0x3c], eax
lea ecx, [0x5a0200]
mov dword [esp], ecx
mov dword [esp + 4], 1
call fcn.00404710
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x3c]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [edi + 8], ecx
mov ecx, dword [0x71e9f0]
test ecx, ecx
jne 0x56b3be
mov ecx, dword [esp + 0x2c]
mov dword [edi], ecx
mov dword [edi + 0xc], eax
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x78]
mov dword [esp], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 4], ecx
call fcn.004048f0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
lea eax, [esp + 0x40]
mov dword [esp + 4], eax
call fcn.00405360
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
test eax, eax
jne 0x56b39a
nop
mov eax, dword [esp + 0x4c]
mov dword [eax + 0x98], 0x80000000
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 8]
test edx, edx
seta bl
mov ecx, dword [ecx + 0xc]
test ecx, ecx
xchg ebp, ebx
sete bl
xchg ebp, ebx
xchg esi, ebx
seta bl
xchg esi, ebx
and ebp, ebx
or ebp, esi
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x56b238
mov dword [eax + 0x9c], edx
mov dword [eax + 0xa0], ecx
lea eax, [0x5a1e20]
mov dword [esp], eax
call fcn.0040b910
mov eax, dword [esp + 4]
mov byte [eax], 2
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x56b221
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 1
mov dword [esp + 0x5c], 1
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
add esp, 0x48
ret
lea eax, [0x5a1e20]
mov dword [esp], eax
call fcn.0040b910
mov eax, dword [esp + 4]
mov byte [eax], 0x15
jmp 0x56b1f9
mov ecx, dword [eax + 0x94]
test ecx, ecx
je 0x56b381
mov edx, dword [ecx + 0x2c]
mov ecx, dword [ecx + 0x28]
cmp edx, 0xa
je 0x56b2a0
cmp edx, 0x16
je 0x56b26e
xor ecx, ecx
mov edx, 0x40000000
mov dword [eax + 0x9c], edx
mov dword [eax + 0xa0], ecx
jmp 0x56b1dc
mov dword [esp], ecx
lea eax, [0x5d4e3b]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004028f0
movzx eax, byte [esp + 0xc]
test al, al
je 0x56b29a
mov eax, dword [esp + 0x4c]
mov ecx, 0x10
xor edx, edx
jmp 0x56b25d
mov eax, dword [esp + 0x4c]
jmp 0x56b256
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], ecx
mov dword [esp], ecx
mov dword [esp + 4], edx
lea eax, [0x5d119a]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0xa
call fcn.004027f0
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x56b329
mov eax, dword [esp + 0x30]
mov dword [esp], eax
lea ecx, [0x5d1190]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 8], ecx
call fcn.004028f0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x56b28d
mov eax, dword [esp + 0x30]
mov dword [esp], eax
lea eax, [0x5d119a]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
call fcn.004028f0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x56b28d
mov eax, dword [esp + 0x4c]
jmp 0x56b256
mov eax, dword [esp + 0x30]
mov dword [esp], eax
lea ecx, [0x5d11a4]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 8], ecx
call fcn.004028f0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x56b28d
mov eax, dword [esp + 0x30]
mov dword [esp], eax
lea eax, [0x5d11ae]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
call fcn.004028f0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x56b28d
jmp 0x56b320
mov dword [eax + 0x9c], 0x40000000
mov dword [eax + 0xa0], 0
jmp 0x56b1dc
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
add esp, 0x48
ret
mov ecx, eax
mov eax, dword [esp + 0x2c]
call fcn.0045e220
lea edx, [edi + 0xc]
mov eax, edi
mov edi, edx
mov ebx, eax
mov eax, ecx
call fcn.0045e220
mov edi, ebx
jmp 0x56b147
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
add esp, 0x48
ret
lea eax, [0x5da817]
mov dword [esp], eax
mov dword [esp + 4], 0x26
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.004b95e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
add esp, 0x48
ret
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.0056aa60
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x1c]
jmp 0x56b0b9
mov dword [esp], edx
call fcn.0056aa60
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
jmp 0x56b067
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
add esp, 0x48
ret
xor eax, eax
mov ecx, esi
call fcn.0045e2a0
xor eax, eax
mov ecx, esi
call fcn.0045e2a0
nop
call fcn.0045ccc0
jmp fcn.0056afe0