Function at 0x56c850
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5e677b
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5fc7d0]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
push edi
mov eax, dword [0x5fc7d0]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00545850
xorps xmm0, xmm0
mov dword [esp + 0xc], eax
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0
movdqu xmmword [esp + 0x1c], xmm0
movdqu xmmword [esp + 0x2c], xmm0
call fcn.0059bc40
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call fcn.0056a5c0
cmp dword [esi + 0x10], 3
mov dword [esp + 0x54], 1
jne 0x56c97f
push dword [esi + 0xc4]
lea ecx, [esp + 0x1c]
push 0x4004
call fcn.0059bcd0
cmp dword [esi + 0xc4], 0
je 0x56c90d
mov ecx, dword [esi + 0xc0]
jmp 0x56c90f
xor ecx, ecx
push dword [esi + 0xc4]
add eax, 4
push ecx
push eax
call fcn.005c4f90
add esp, 0xc
lea ecx, [esp + 0x18]
push 0x10
push 0x4008
call fcn.0059bcd0
mov ecx, dword [esi + 0x230]
mov edx, eax
mov dword [edx + 4], ecx
mov ecx, dword [esi + 0x234]
mov dword [edx + 8], ecx
lea ecx, [esp + 0x18]
mov eax, dword [esi + 0x58]
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], 0
push dword [esi + 0x58]
push 0x4009
call fcn.0059bcd0
cmp dword [esi + 0x58], 0
je 0x56c975
mov ecx, dword [esi + 0x54]
push dword [esi + 0x58]
jmp 0x56ca5b
push dword [esi + 0x58]
xor ecx, ecx
jmp 0x56ca5b
mov eax, dword [0x6023e8]
test eax, eax
jne 0x56c9c3
push 0x34
call fcn.005c4082
mov edi, eax
add esp, 4
mov dword [esp + 0x3c], edi
mov byte [esp + 0x54], 2
test edi, edi
je 0x56c9b7
push 0x34
push 0
push edi
call fcn.005c55e0
add esp, 0xc
mov ecx, edi
call fcn.00564270
jmp 0x56c9b9
xor eax, eax
mov byte [esp + 0x54], 1
mov dword [0x6023e8], eax
imul edi, dword [esi + 0x244], 0x18c
lea ecx, [esp + 0x18]
add edi, dword [eax + 0x18]
push dword [edi + 0x170]
push 0x4004
call fcn.0059bcd0
cmp dword [edi + 0x170], 0
je 0x56c9f5
mov ecx, dword [edi + 0x16c]
jmp 0x56c9f7
xor ecx, ecx
push dword [edi + 0x170]
add eax, 4
push ecx
push eax
call fcn.005c4f90
add esp, 0xc
lea ecx, [esp + 0x18]
push 0x10
push 0x4008
call fcn.0059bcd0
mov ecx, dword [edi + 0x1c]
mov dword [eax + 4], ecx
mov dword [eax + 8], 0
mov ecx, dword [edi + 0x20]
mov dword [eax + 0xc], ecx
lea ecx, [esp + 0x18]
mov dword [eax + 0x10], 0
push dword [edi + 0x20]
push 0x4009
call fcn.0059bcd0
cmp dword [edi + 0x134], 0
je 0x56ca56
mov ecx, dword [edi + 0x130]
jmp 0x56ca58
xor ecx, ecx
push dword [edi + 0x20]
push ecx
add eax, 4
push eax
call fcn.005c4f90
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.0059bee0
mov edi, dword [esp + 0x30]
mov edx, dword [esi + 0x218]
mov dword [esp + 0x10], eax
add dword [edi + 4], edx
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 0x238]
mov edi, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x23c]
mov dword [eax], ecx
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x30]
mov dword [eax], edi
call fcn.0059be20
mov eax, edi
mov dword [esi + 0x22c], 0
or eax, dword [esi + 0x22c]
mov dword [esi + 0x228], edi
je 0x56cc1d
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x40]
push 0
push eax
xorps xmm0, xmm0
mov dword [esp + 0x44], 0
mov eax, dword [edi + 0x354]
movlpd qword [esp + 0x48], xmm0
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esi + 0x14]
call eax
mov eax, dword [esp + 0x40]
or eax, dword [esp + 0x44]
jne 0x56cb2b
push eax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x18]
lea ecx, [esp + 0x24]
call fcn.0059bed0
push eax
push dword [esi + 0x14]
mov eax, dword [edi + 0x348]
call eax
test eax, eax
je 0x56cc54
push 0
lea eax, [esp + 0x44]
push eax
push dword [esi + 0x22c]
mov eax, dword [edi + 0x354]
push dword [esi + 0x228]
push dword [esi + 0x14]
call eax
mov eax, dword [esp + 0x40]
cmp eax, dword [esi + 0x228]
jne 0x56cbe9
mov eax, dword [esp + 0x44]
cmp eax, dword [esi + 0x22c]
jne 0x56cbe9
xor eax, eax
mov dword [esp + 0x10], eax
nop
xor edx, edx
lea ecx, [eax + 0x1000]
cmp edx, dword [esi + 0x21c]
jg 0x56cb91
jl 0x56cb8a
cmp ecx, dword [esi + 0x218]
jae 0x56cb91
mov edi, 0x1000
jmp 0x56cb99
mov edi, dword [esi + 0x218]
sub edi, eax
cmp dword [esi + 0x7c], edx
je 0x56cba3
mov ecx, dword [esi + 0x78]
jmp 0x56cba5
xor ecx, ecx
push 0
lea edx, [esp + 0x40]
add eax, ecx
push edx
push edi
push eax
mov eax, dword [esp + 0x1c]
push dword [esi + 0x14]
mov eax, dword [eax + 0x348]
call eax
test eax, eax
je 0x56cc54
mov eax, dword [esp + 0x10]
xor ecx, ecx
add eax, edi
mov dword [esp + 0x10], eax
cmp ecx, dword [esi + 0x21c]
jg 0x56cbe5
jl 0x56cb70
cmp eax, dword [esi + 0x218]
jb 0x56cb70
mov edi, dword [esp + 0xc]
mov ecx, dword [esi + 0x218]
add ecx, dword [esi + 0x228]
mov eax, dword [esi + 0x21c]
adc eax, dword [esi + 0x22c]
push 0
push 0
push eax
mov eax, dword [edi + 0x354]
push ecx
push dword [esi + 0x14]
call eax
push dword [esi + 0x14]
mov eax, dword [edi + 0x358]
call eax
mov byte [esp + 0x17], 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], 0xffffffff
call fcn.0059bc60
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.005c4b26
add esp, 0x4c
ret
mov byte [esp + 0x17], 0
jmp 0x56cc22