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

Disassembly:
push 0xffffffffffffffff
push 0x634ea6
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x786f54]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
xor ebx, ebx
mov ecx, eax
and ecx, 3
lea esi, [eax + 4]
cmp esi, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ecx
jbe 0x56e758
mov dword [esp + 0x14], 0xffffffff
jmp 0x56ea39
mov eax, dword [eax]
mov edi, eax
add edi, edi
add edi, edi
lea ebp, [edi + esi]
cmp ebp, edx
mov dword [esp + 0x18], eax
jbe 0x56e778
mov dword [esp + 0x14], 0xffffffff
jmp 0x56ea39
test ecx, ecx
jne 0x56e782
mov dword [esp + 0x1c], esi
jmp 0x56e7a9
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00610aae
push edi
push esi
push eax
mov dword [esp + 0x2c], eax
call sub.MSVCR80.dll_memcpy
add esp, 0x10
mov eax, dword [esp + 0x1c]
mov esi, dword [edi + eax - 4]
add esi, esi
add esi, esi
lea edi, [esi + ebp]
cmp edi, dword [esp + 0x84]
jbe 0x56e7ce
mov dword [esp + 0x14], 0xffffffff
jmp 0x56ea39
cmp dword [esp + 0x30], ebx
jne 0x56e7da
mov dword [esp + 0x28], ebp
jmp 0x56e801
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00610aae
push esi
push ebp
push eax
mov dword [esp + 0x38], eax
call sub.MSVCR80.dll_memcpy
add esp, 0x10
mov esi, dword [esp + 0x18]
add esi, esi
lea ebp, [esi + edi]
cmp ebp, dword [esp + 0x84]
jbe 0x56e820
mov dword [esp + 0x14], 0xffffffff
jmp 0x56ea39
cmp dword [esp + 0x30], ebx
jne 0x56e82c
mov dword [esp + 0x2c], edi
jmp 0x56e853
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00610aae
push esi
push edi
push eax
mov dword [esp + 0x3c], eax
call sub.MSVCR80.dll_memcpy
add esp, 0x10
cmp dword [esp + 0x18], ebx
mov dword [esp + 0x3c], ebx
jbe 0x56ea39
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x20]
movzx eax, word [edx]
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + eax*4]
mov eax, dword [esp + 0x24]
cmp ebx, dword [eax]
mov byte [esp + 0x80], 1
mov dword [esp + 0x48], edx
jae 0x56ea04
mov edi, dword [esp + 0x28]
mov eax, dword [edi + ebx*4]
lea esi, [eax + ebp]
add ebx, 1
cmp esi, dword [esp + 0x84]
ja 0x56e74b
mov ecx, dword [esp + 0x88]
push ecx
push eax
push ebp
lea ecx, [esp + 0x68]
call fcn.00580df0
mov edi, dword [edi + ebx*4]
lea ebp, [edi + esi]
add ebx, 1
cmp ebp, dword [esp + 0x84]
mov dword [esp + 0x78], 0
mov dword [esp + 0x40], ebp
ja 0x56ea25
mov al, byte [esp + 0x8c]
test al, al
je 0x56e988
movsx edx, al
lea eax, [esp + 0x34]
push eax
push edi
push esi
mov dword [esp + 0x40], edx
call fcn.00583d20
add esp, 0xc
mov ebp, eax
push ebp
lea ecx, [esp + 0x54]
call fcn.0056dab0
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x54]
push edx
push edi
push esi
mov byte [esp + 0x88], 1
call fcn.00583ec0
push 0x18
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 0x14
mov dword [esp + 0x4c], esi
test esi, esi
mov byte [esp + 0x78], 2
je 0x56e975
lea eax, [ebp + ebp]
push eax
lea ecx, [esp + 0x54]
call fcn.0056db00
push eax
lea ecx, [esp + 0x64]
push ecx
mov ecx, esi
call fcn.0056d800
lea ecx, [esp + 0x50]
mov esi, eax
call fcn.0056daf0
mov ebp, dword [esp + 0x40]
jmp 0x56e9b3
xor eax, eax
lea ecx, [esp + 0x50]
mov esi, eax
call fcn.0056daf0
mov ebp, dword [esp + 0x40]
jmp 0x56e9b3
push 0x18
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x4c], eax
test eax, eax
mov byte [esp + 0x78], 3
je 0x56e9af
push edi
push esi
lea edx, [esp + 0x64]
push edx
mov ecx, eax
call fcn.0056d800
jmp 0x56e9b1
xor eax, eax
mov esi, eax
cmp byte [esp + 0x80], 0
jne 0x56e9c6
mov eax, dword [esp + 0x44]
mov dword [eax + 4], esi
jmp 0x56e9dc
mov ecx, dword [esp + 0x20]
movzx edx, word [ecx]
mov eax, dword [esp + 0x38]
mov dword [eax + edx*4], esi
mov byte [esp + 0x80], 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x44], esi
mov dword [esp + 0x78], 0xffffffff
call fcn.00580ed0
mov ecx, dword [esp + 0x24]
cmp ebx, dword [ecx]
jb 0x56e897
mov edx, dword [esp + 0x48]
mov dword [esi + 4], edx
mov eax, dword [esp + 0x3c]
add dword [esp + 0x20], 2
add dword [esp + 0x24], 4
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
jb 0x56e871
jmp 0x56ea39
or eax, 0xffffffff
lea ecx, [esp + 0x5c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x78], eax
call fcn.00580ed0
cmp dword [esp + 0x30], 0
je 0x56ea61
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov ecx, dword [esp + 0x2c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov edx, dword [esp + 0x34]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0x10