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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0
mov eax, dword [esi + 0x74]
movsd xmm0, qword [esi + 0x48]
test eax, eax
movaps xmmword [esp + 0x40], xmm0
je 0x4136c6
push 1
push eax
push dword [esi + 0x78]
call fcn.0040dc90
add esp, 0xc
mov eax, dword [esi + 0x98]
test eax, eax
je 0x4136e1
push 1
push eax
push dword [esi + 0x9c]
call fcn.0040dc90
add esp, 0xc
mov ebx, dword [esi + 0xac]
mov eax, dword [esi + 0xa8]
test ebx, ebx
mov dword [esp + 0xc], eax
je 0x41371c
mov eax, dword [esp + 0xc]
lea edi, [eax + 8]
jmp 0x413706
add edi, 0x10
dec ebx
je 0x41371c
mov eax, dword [edi - 4]
test eax, eax
je 0x413700
push 1
push eax
push dword [edi]
call fcn.0040dc90
add esp, 0xc
jmp 0x413700
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x413738
shl eax, 4
push 4
push eax
push dword [esp + 0x14]
call fcn.0040dc90
add esp, 0xc
mov ebx, dword [esi + 0xb8]
mov eax, dword [esi + 0xb4]
test ebx, ebx
mov dword [esp + 0xc], eax
je 0x41377c
mov eax, dword [esp + 0xc]
lea edi, [eax + 0x28]
jmp 0x413766
add edi, 0x48
dec ebx
je 0x41377c
mov eax, dword [edi - 4]
test eax, eax
je 0x413760
push 1
push eax
push dword [edi]
call fcn.0040dc90
add esp, 0xc
jmp 0x413760
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x41379b
shl eax, 3
lea eax, [eax + eax*8]
push 4
push eax
push dword [esp + 0x14]
call fcn.0040dc90
add esp, 0xc
movaps xmm0, xmmword [esp + 0x40]
mov esi, dword [ebp + 8]
lea eax, [esp + 0x24]
lea edi, [esp + 0x10]
lea ecx, [esp + 0x30]
movlps qword [esp + 0x18], xmm0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0xa00001
push eax
push edi
push ecx
call fcn.00418480
add esp, 0xc
movzx eax, byte [esp + 0x30]
cmp al, 4
jne 0x4138a0
mov eax, dword [esp + 0x1c]
push dword [esp + 0x18]
call dword [eax]
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x413804
push dword [eax + 8]
push ecx
push dword [esp + 0x20]
call fcn.0040dc90
add esp, 0xc
mov eax, dword [esp + 0x2c]
cmp eax, 0xa00000
jbe 0x413901
push 1
push 0x20
call fcn.0040dc80
add esp, 8
test eax, eax
je 0x4139ba
mov edi, eax
mov dword [eax + 0x1c], 0x676e6972
mov dword [eax + 0x18], 0x74735f6f
mov dword [eax + 0x14], 0x746e6920
mov dword [eax + 0x10], 0x726f6620
mov dword [eax + 0xc], 0x67696220
mov dword [eax + 8], 0x6f6f7420
mov dword [eax + 4], 0x65736e6f
mov dword [eax], 0x70736572
push 4
push 0xc
call fcn.0040dc80
add esp, 8
test eax, eax
je 0x4139c0
mov dword [eax], 0x20
mov dword [eax + 4], edi
lea ecx, [esi + 4]
mov dword [eax + 8], 0x20
push 0x519ed8
push eax
push 0x27
push ecx
call fcn.004cd110
add esp, 0x10
mov dword [esi], 1
jmp 0x4138e9
movzx ecx, byte [esp + 0x33]
movzx edi, word [esp + 0x31]
mov edx, dword [esp + 0x34]
mov byte [esi + 7], cl
mov word [esi + 5], di
mov byte [esi + 4], al
mov eax, dword [esp + 0x1c]
mov dword [esi + 8], edx
mov dword [esi], 1
push dword [esp + 0x18]
call dword [eax]
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4138e9
push dword [eax + 8]
push ecx
push dword [esp + 0x20]
call fcn.0040dc90
add esp, 0xc
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4139b0
push 1
push eax
push dword [esp + 0x30]
jmp 0x4139a8
push eax
push dword [esp + 0x2c]
push edi
call fcn.004d1460
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x40], eax
test eax, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], ebx
mov edi, eax
je 0x41392f
mov edi, dword [esp + 0x1c]
mov ebx, eax
test edi, edi
mov dword [esp + 0x3c], eax
je 0x41395c
setns al
js 0x4139ce
movzx eax, al
mov dword [esp + 0x38], eax
push eax
push edi
call fcn.0040dc80
add esp, 8
test eax, eax
jne 0x413961
push dword [esp + 0x38]
push edi
jmp 0x4139c4
mov eax, 1
mov dword [esi + 4], edi
mov dword [esi + 8], eax
push edi
push ebx
push eax
call fcn.004f5b80
add esp, 0xc
mov eax, dword [esp + 0x24]
mov dword [esi + 0xc], edi
mov dword [esi], 0
test eax, eax
je 0x413992
push 1
push eax
push dword [esp + 0x30]
call fcn.0040dc90
add esp, 0xc
cmp dword [esp + 0x40], 0
mov eax, dword [esp + 0xc]
je 0x4139b0
test eax, eax
je 0x4139b0
push 1
push eax
push dword [esp + 0x44]
call fcn.0040dc90
add esp, 0xc
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 1
push 0x20
jmp 0x4139c4
push 4
push 0xc
call fcn.005062c0
add esp, 8
ud2
call fcn.004ccfb0
ud2