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

Disassembly:
sub esp, 0x34
mov edx, dword [ecx]
push ebx
mov ebx, dword [eax + 0x20]
push ebp
mov ebp, dword [esp + 0x44]
push edi
mov edi, dword [eax + 0x1c]
lea eax, [edx + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
mov eax, ebp
shl eax, 4
add edx, eax
mov dword [esp + 0x20], edx
add edx, 0x10
mov dword [esp + 0x24], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi]
sub eax, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], edx
mov eax, ecx
cdq
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x4c]
sar edx, 1
shl eax, 3
sub eax, edx
mov edx, dword [esi + 4]
mov dword [esp + 0x3c], eax
xor eax, eax
cmp edx, eax
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], eax
jg 0x56e7f0
pop edi
pop ebp
pop ebx
add esp, 0x34
ret
xor eax, eax
lea ecx, [ecx]
cmp ecx, eax
mov dword [esp + 0x28], eax
jle 0x56eb7a
lea esp, [esp]
mov ecx, dword [esi + 0x10]
push 1
push ecx
call fcn.0056def0
add esp, 8
cmp eax, 1
jne 0x56e851
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push ebp
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x58]
push eax
push ecx
push edx
call fcn.005770f0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x68]
add esp, 0x20
mov word [eax + ecx*2], 0
jmp 0x56eb16
mov eax, dword [esi + 0x10]
mov ecx, dword [0x638aec]
lea edx, [esp + 0x2c]
push edx
push eax
push ecx
call fcn.00574fc0
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp eax, 0x14
jne 0x56e88b
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x48]
sub ecx, 0x10
dec eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x48], eax
jmp 0x56eb5c
mov edx, dword [esi + 0x1c]
mov ecx, dword [esp + 0x48]
shr eax, 2
mov word [edx + ecx*2], ax
mov eax, dword [esi + 0x10]
mov ecx, dword [0x638ae8]
lea edx, [esp + 0xc]
push edx
push eax
push ecx
call fcn.00574fc0
mov edx, dword [esi + 0x1c]
mov eax, dword [esp + 0x54]
movsx eax, word [edx + eax*2]
add esp, 0xc
cmp eax, 4
ja case.default.0x56e8c5
jmp dword [eax*4 + 0x56ebec]
mov ecx, dword [esi + 0x10]
push 2
push ecx
call fcn.0056def0
mov eax, dword [eax*4 + 0x5ed510]
add eax, edi
add esp, 8
cmp eax, 1
jge 0x56e8ef
mov eax, 1
jmp 0x56e8f9
cmp eax, 0x1f
jle 0x56e8f9
mov eax, 0x1f
mov edi, eax
mov edx, dword [esp + 0x34]
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x24]
push eax
mov eax, dword [esi + 0x1c]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push eax
push ecx
call fcn.00575490
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x10]
push ebp
push edx
push edi
not eax
push ebx
mov dword [esp + 0x34], eax
push ecx
and eax, 8
push eax
call fcn.00574cd0
mov edx, dword [esp + 0x4c]
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x3c]
push ebp
push edx
push edi
push ebx
push eax
and ecx, 4
push ecx
call fcn.00574cd0
mov edx, dword [esp + 0x68]
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x54]
add esp, 0x48
push ebp
push edx
push edi
push ebx
push eax
and ecx, 2
push ecx
call fcn.00574cd0
mov edx, dword [esp + 0x3c]
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x24]
push ebp
push edx
push edi
push ebx
push eax
and ecx, 1
push ecx
call fcn.00574cd0
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x44]
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [esp + 0x60]
push eax
push edi
push ebx
push ecx
and edx, 2
push edx
call fcn.00574cd0
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x60]
mov edx, dword [esi + 0x10]
add esp, 0x48
push eax
push ecx
push edi
push ebx
push edx
mov eax, dword [esp + 0x40]
and eax, 1
push eax
call fcn.00574cd0
mov ecx, dword [esi]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x44]
push ebp
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esi + 0x24]
push edx
mov edx, dword [esi + 0x1c]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x90]
push eax
push ecx
push edx
call fcn.00577370
add esp, 0x54
jmp 0x56eb0c
mov eax, dword [esi + 0x10]
push 2
push eax
call fcn.0056def0
mov eax, dword [eax*4 + 0x5ed510]
add eax, edi
add esp, 8
cmp eax, 1
jge 0x56ea3c
mov eax, 1
jmp 0x56ea46
cmp eax, 0x1f
jle 0x56ea46
mov eax, 0x1f
mov edi, eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0xc]
push ebp
push ecx
push edi
push ebx
push edx
and eax, 8
push eax
call fcn.00574bc0
mov ecx, dword [esp + 0x34]
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x24]
push ebp
push ecx
push edi
push ebx
push edx
and eax, 4
push eax
call fcn.00574bc0
mov ecx, dword [esp + 0x50]
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x3c]
push ebp
push ecx
push edi
push ebx
push edx
and eax, 2
push eax
call fcn.00574bc0
mov ecx, dword [esp + 0x6c]
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x54]
add esp, 0x48
push ebp
push ecx
push edi
push ebx
push edx
and eax, 1
push eax
call fcn.00574bc0
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x2c]
mov eax, dword [esi + 0x10]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push edi
push ebx
push eax
and ecx, 2
push ecx
call fcn.00574bc0
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x48]
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [esp + 0x60]
push eax
push edi
push ebx
push ecx
and edx, 1
push edx
call fcn.00574bc0
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
add esp, 0x48
push eax
mov eax, dword [esp + 0x14]
push ebp
push ecx
push edx
push eax
call fcn.00574410
add esp, 0x14
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x48]
mov dword [ecx + edx*4], edi
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, 0x20
add edx, eax
add ecx, eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x24]
add edx, eax
add ecx, eax
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x18]
mov eax, 0x10
add edx, eax
add ecx, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
add eax, 0x10
inc ecx
mov dword [esp + 0x48], ecx
mov ecx, dword [esi]
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x56e800
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
add eax, eax
add edx, eax
mov dword [esp + 0x10], edx
add dword [esp + 0x1c], eax
add dword [esp + 0x20], eax
mov edx, dword [esp + 0x24]
add edx, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
add eax, eax
add edx, eax
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
add edx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], edx
mov edx, dword [esi + 4]
add eax, 0x10
cmp eax, edx
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], eax
jl 0x56e7eb
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34
ret
pop edi
pop ebp
mov eax, 0x2c
pop ebx
add esp, 0x34
ret