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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov edx, dword [ecx]
test edx, edx
je 0x405738
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 4]
mov esi, edx
movzx edi, word [edx + 6]
test ecx, ecx
je 0x405711
mov esi, dword [esi + 0x140]
mov edx, dword [edx + edi*4 + 0x140]
dec ecx
jmp 0x4056f9
and dword [esp + 0x4c], 0
mov dword [esp + 0x50], esi
and dword [esp + 0x54], 0
and dword [esp + 0x58], 0
and dword [esp + 0x5c], 0
mov dword [esp + 0x60], edx
and dword [esp + 0x64], 0
mov dword [esp + 0x68], edi
jmp 0x405744
and dword [esp + 0x50], 0
and dword [esp + 0x60], 0
xor eax, eax
lea ecx, [esp + 0x4c]
lea esi, [esp + 0x18]
mov dword [ecx + 0x20], eax
test eax, eax
je 0x4058a6
dec eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x4c]
mov edi, dword [esp + 0x50]
test edi, edi
cmovne edi, eax
je 0x4058ed
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov ebx, dword [edi + 0xc]
mov dword [esp + 4], edi
movzx edi, word [eax + 6]
cmp ebx, edi
jb 0x4057af
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov ecx, esi
lea edx, [esp + 8]
call fcn.00409800
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
jmp 0x40577e
imul esi, ebx, 0xc
mov edi, dword [eax + esi + 0x10]
mov dword [esp + 0x10], edi
mov edi, ebx
inc ebx
movsd xmm0, qword [eax + esi + 8]
shl edi, 4
test edx, edx
movsd qword [esp + 8], xmm0
mov esi, dword [eax + edi + 0x90]
mov dword [esp + 0x48], esi
mov esi, dword [eax + edi + 0x9c]
mov dword [esp + 0x20], esi
movsd xmm0, qword [eax + edi + 0x94]
movsd qword [esp + 0x18], xmm0
je 0x405817
mov edi, dword [esp + 4]
lea eax, [eax + ebx*4 + 0x140]
dec edx
lea esi, [esp + 0x18]
mov eax, dword [eax]
test edx, edx
je 0x405813
add eax, 0x140
dec edx
jmp 0x405805
xor ebx, ebx
jmp 0x40581f
mov edi, dword [esp + 4]
lea esi, [esp + 0x18]
mov edx, dword [esp + 0x10]
movsd xmm0, qword [esp + 8]
movsd xmm1, qword [esp + 0x18]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x20]
movsd qword [esp + 0x38], xmm0
movsd qword [esp + 0x70], xmm1
mov dword [esp + 0x78], edx
and dword [edi], 0
mov dword [edi + 4], eax
mov eax, dword [esp + 0x48]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ebx
cmp eax, 5
je 0x4058a6
movsd xmm0, qword [esp + 0x38]
movsd xmm1, qword [esp + 0x40]
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0x2c]
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [esp + 0x70]
movsd qword [esp + 0x20], xmm1
mov dword [esp + 0x28], eax
mov dword [ecx + 8], edx
movsd qword [ecx], xmm0
mov ecx, esi
call fcn.00435706
lea ecx, [esp + 0x28]
call fcn.00405a1f
mov eax, dword [esp + 0x6c]
jmp 0x40574f
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4058e5
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
lea esi, [esp + 0x18]
lea edi, [esp + 0x38]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
mov ecx, esi
mov edx, edi
call fcn.00409800
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4058e5
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
jmp 0x4058be
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x2b
pop edx
mov ecx, 0x46207d
push 0x45918c
call fcn.00430900
pop eax
ud2