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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x7464d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xec
push ebx
push ebp
mov ebx, ecx
cmp dword [ebx + 0x8c], 0
push esi
push edi
jne 0x56f6b2
mov ecx, dword [ebx + 0x54]
test ecx, ecx
je 0x56f6b2
mov eax, dword [ecx]
call dword [eax + 0x2c]
test eax, eax
je 0x56f6b2
cmp dword [ebx + 0x78], 0
jne 0x56f6b2
mov ecx, dword [0x912e94]
cmp dword [ecx + 0x1c], 0
je 0x56f3cf
mov edx, dword [ebx + 0x70]
sub esp, 8
mov eax, esp
mov dword [eax], edx
mov ecx, dword [ebx + 0x74]
mov dword [eax + 4], ecx
mov edx, dword [0x912e94]
mov ecx, dword [edx + 0x1c]
mov eax, dword [ecx]
mov dword [esp + 0x24], esp
call dword [eax + 0xa4]
test eax, eax
jne 0x56f6b2
mov edx, dword [ebx + 0x98]
lea ecx, [ebx + 0x98]
mov dword [ebx + 0x8c], 1
call dword [edx + 0x20]
mov ecx, dword [ebx + 0x54]
mov eax, dword [ecx]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
call dword [eax + 0x2c]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x56f483
mov ecx, dword [ebx + 0x54]
mov edx, dword [ecx]
lea eax, [esp + 0x2c]
push eax
call dword [edx + 0x34]
mov ecx, dword [eax]
push ecx
mov ecx, dword [0x912e94]
call fcn.004668b0
test eax, eax
je 0x56f474
lea ecx, [eax - 0x18]
test ecx, ecx
je 0x56f474
mov edx, dword [ecx]
lea eax, [esp + 0x1c]
push eax
call dword [edx + 0x148]
test edi, edi
jne 0x56f451
test ebp, ebp
jne 0x56f451
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
jmp 0x56f474
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add eax, ebp
cdq
sub eax, edx
lea esi, [ecx + edi]
mov ecx, eax
mov eax, esi
cdq
sar ecx, 1
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x2c], 0
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
jne 0x56f404
mov ecx, dword [ebx + 0x54]
mov edx, dword [ecx]
call dword [edx + 0x2c]
test eax, eax
mov dword [esp + 0x30], eax
je 0x56f6b2
jmp 0x56f4a1
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebx + 0x54]
mov eax, dword [ecx]
lea edx, [esp + 0x30]
push edx
call dword [eax + 0x34]
mov eax, dword [eax]
mov ecx, dword [0x912e94]
push eax
call fcn.004668b0
test eax, eax
je 0x56f6a7
lea ecx, [eax - 0x18]
test ecx, ecx
je 0x56f6a7
mov edx, dword [ecx]
call dword [edx + 0x20]
mov esi, eax
test esi, esi
je 0x56f6a7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x210]
test al, al
jne 0x56f6a7
mov edx, dword [esi]
lea eax, [esp + 0x60]
push eax
mov ecx, esi
call dword [edx + 0x148]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov edx, dword [ebx + 0x88]
sub ecx, ebp
add edx, ecx
mov ecx, dword [ebx + 0x84]
push 0
push 0
sub eax, edi
mov dword [esp + 0x30], edx
add ecx, eax
push 0
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x68]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0x24]
push eax
call fcn.00611d80
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov eax, dword [esi + 0x60]
push eax
push 0
lea ecx, [esi + 0x98]
push ecx
lea ecx, [esp + 0x7c]
call fcn.00698ee0
mov ecx, dword [esp + 0x24]
push 0
push 0x85da6c
push 0x85da04
push 0
push 6
lea edx, [esp + 0x84]
push edx
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esp + 0x48]
mov dword [eax + 4], edx
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x14]
mov dword [esp + 0x3c], esp
push ecx
push eax
mov dword [esp + 0x12c], 0
call fcn.00603a80
add esp, 0x18
push eax
call fcn.0071f44c
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x56f5c3
mov dword [esp + 0x104], 1
jmp 0x56f68a
mov ecx, dword [esi + 0x120]
mov edx, dword [ecx]
push 0
call dword [edx + 0x28]
push eax
mov ecx, edi
call fcn.0069b930
push 0
mov ecx, edi
call fcn.0069fea0
mov eax, dword [edi + 0x1c]
mov ecx, dword [esi + 0x1c]
mov edx, dword [edi]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x38], ecx
push eax
mov ecx, edi
call dword [edx + 0x148]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x120]
mov edx, dword [ecx]
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
call dword [edx + 0x28]
mov ebp, eax
cmp ebp, 6
mov dword [esp + 0x4c], ebp
jne 0x56f632
mov ebp, 1
mov dword [esp + 0x4c], ebp
mov ecx, dword [esi + 0x120]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [esi + 0x60]
push 0
mov dword [esp + 0x58], ecx
push ebp
mov ecx, edi
mov dword [esp + 0x58], eax
call fcn.0069b930
push 1
mov ecx, edi
call fcn.0069e1b0
mov edi, dword [ebx + 0x98]
sub esp, 0x24
lea edx, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x40], esp
lea esi, [ebx + 0x98]
push edx
call fcn.005708d0
mov ecx, esi
call dword [edi + 8]
mov dword [esp + 0x104], 2
lea ecx, [esp + 0x7c]
call fcn.00698530
lea ecx, [esp + 0x70]
mov dword [esp + 0x104], 0xffffffff
call fcn.00437a90
cmp dword [esp + 0x30], 0
jne 0x56f499
mov ecx, dword [esp + 0xfc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret