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

Disassembly:
sub esp, 0x1a0
mov eax, dword [0x44804c]
xor eax, esp
mov dword [esp + 0x19c], eax
mov eax, dword [esp + 0x1ac]
push ebx
mov ebx, dword [esp + 0x1a8]
push ebp
push edi
mov edi, dword [esp + 0x1b4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1bc]
push 0x40
mov dword [esp + 0x24], eax
lea eax, [esp + 0x144]
push 0
push eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x4c], 0
call fcn.00416900
mov ebp, dword [0x437070]
lea eax, [esp + 0x1c]
add esp, 0xc
push eax
push 0x40
lea eax, [esp + 0x148]
push eax
push edi
push ebx
call ebp
test eax, eax
je 0x413424
cmp dword [esp + 0x10], 0x40
jb 0x413424
push 0xf8
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.00416900
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0xf8
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x188]
add eax, edi
push eax
push ebx
call ebp
test eax, eax
je 0x413424
cmp dword [esp + 0x10], 0xf8
jb 0x413424
mov eax, 0x10b
cmp word [esp + 0x60], ax
je 0x41314a
push 9
call dword [0x43704c]
jmp 0x413424
movzx ecx, word [esp + 0x5c]
mov eax, dword [esp + 0x17c]
add ecx, 0x18
add eax, ecx
mov dword [esp + 0x118], 0
push esi
xor ecx, ecx
mov dword [esp + 0x120], 0
xor esi, esi
cmp cx, word [esp + 0x52]
jae 0x413212
add edi, eax
lea eax, [esp + 0x14]
xorps xmm0, xmm0
push eax
push 0x28
lea eax, [esp + 0x18c]
movq qword [esp + 0x1ac], xmm0
push eax
push edi
push ebx
movups xmmword [esp + 0x198], xmm0
movups xmmword [esp + 0x1a8], xmm0
call ebp
test eax, eax
je 0x413423
cmp dword [esp + 0x14], 0x28
jb 0x413423
cmp dword [esp + 0x124], 0
jne 0x413201
mov edx, dword [esp + 0xcc]
mov ecx, dword [esp + 0x190]
cmp edx, ecx
jb 0x413201
mov ebx, dword [esp + 0x194]
lea eax, [ebx + ecx]
cmp edx, eax
jae 0x4131fd
mov dword [esp + 0x124], ecx
mov dword [esp + 0x128], ebx
mov ebx, dword [esp + 0x18]
movzx eax, word [esp + 0x52]
inc esi
add edi, 0x28
cmp esi, eax
jb 0x413183
mov ecx, dword [esp + 0x24]
mov eax, 0xcccccccd
mul dword [esp + 0xd0]
mov esi, ecx
xor ebp, ebp
mov eax, edx
shl esi, 4
shr eax, 4
xor edi, edi
mov dword [esp + 0x30], eax
xor edx, edx
add eax, ecx
lea eax, [eax + eax*4]
lea eax, [eax*4 + 7]
and eax, 0xfffffff8
add esi, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], esi
mov ebx, esi
mov dword [esp + 0x20], ebx
cmp ecx, 2
jb 0x4132b2
lea ebx, [ecx - 1]
nop dword [eax]
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + edx*4]
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413270
sub ecx, esi
lea eax, [ecx + 4]
and eax, 0xfffffffc
add ebp, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + edx*4 + 4]
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413290
sub ecx, esi
add edx, 2
lea eax, [ecx + 4]
and eax, 0xfffffffc
add edi, eax
cmp edx, ebx
jb 0x413260
mov ebx, dword [esp + 0x20]
mov esi, ebx
mov ecx, dword [esp + 0x24]
cmp edx, ecx
jae 0x4132d1
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + edx*4]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4132c0
sub ecx, edx
lea ebx, [ecx + 4]
and ebx, 0xfffffffc
add ebx, esi
lea eax, [edi + ebp]
add ebx, eax
push ebx
mov dword [esp + 0x24], ebx
call fcn.00401280
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x413423
push ebx
push 0
push eax
call fcn.00416900
mov edx, dword [esp + 0x40]
add esp, 0xc
mov ecx, dword [esp + 0x70]
xorps xmm0, xmm0
mov eax, dword [esp + 0x78]
add ecx, edx
add ecx, dword [esp + 0x6c]
add ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x18]
add eax, ecx
mov ebp, dword [0x43706c]
lea ecx, [esp + 0x184]
push 0x1c
cmp edx, eax
movq qword [esp + 0x198], xmm0
push ecx
cmovae eax, edx
mov dword [esp + 0x1a4], 0
push eax
push ebx
movups xmmword [esp + 0x194], xmm0
call ebp
test eax, eax
je 0x413410
mov edi, dword [0x437064]
nop dword [eax]
mov edx, dword [esp + 0x190]
mov eax, edx
and eax, 0xfff
cmp eax, 0xfff
je 0x413416
cmp dword [esp + 0x194], 0x10000
mov ecx, dword [esp + 0x184]
jne 0x4133d8
lea esi, [ecx + 0xffff]
and esi, 0xffff0000
lea eax, [edx + ecx]
cmp esi, eax
jae 0x4133d8
push 4
push 0x3000
push dword [esp + 0x28]
push esi
push ebx
call edi
mov ebx, eax
test ebx, ebx
jne 0x413440
mov edx, dword [esp + 0x190]
add esi, 0x10000
mov ecx, dword [esp + 0x184]
mov ebx, dword [esp + 0x18]
lea eax, [edx + ecx]
cmp esi, eax
jb 0x4133a0
lea eax, [edx + ecx]
mov dword [esp + 0x19c], 0
push 0x1c
lea ecx, [esp + 0x188]
xorps xmm0, xmm0
push ecx
push eax
push ebx
movups xmmword [esp + 0x194], xmm0
movq qword [esp + 0x1a4], xmm0
call ebp
test eax, eax
jne 0x413360
call dword [0x437010]
mov ebp, dword [esp + 0x10]
push ebp
call fcn.00415539
add esp, 4
pop esi
mov ecx, dword [esp + 0x1a8]
mov eax, dword [esp + 0x40]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004154ca
add esp, 0x1a0
ret
mov edx, dword [esp + 0x34]
mov edi, ebx
mov ecx, dword [esp + 0xcc]
sub edi, edx
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x40], edi
mov dword [esp + 0x38], 0
test ecx, ecx
je 0x4134a0
mov eax, dword [esp + 0x30]
lea esi, [eax + eax*4]
lea eax, [esp + 0x14]
shl esi, 2
push eax
mov eax, dword [esp + 0x28]
push esi
lea eax, [eax + eax*4]
lea eax, [eax*4]
add eax, ebp
push eax
lea eax, [ecx + edx]
push eax
push dword [esp + 0x28]
call dword [0x437070]
test eax, eax
je 0x41341a
cmp dword [esp + 0x14], esi
jb 0x41341a
xor ecx, ecx
mov dword [esp + 0x3c], ecx
cmp dword [esp + 0x24], ecx
jbe 0x4135bb
mov edx, dword [esp + 0x2c]
add ebp, 4
lea eax, [edi + edx]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
lea eax, [edx + 4]
mov edx, dword [esp + 0x1c]
add eax, edi
mov dword [esp + 0x30], eax
nop
mov eax, dword [esp + 0x28]
add edi, edx
push dword [eax + ecx*4]
mov esi, dword [esp + 0x24]
lea eax, [eax + ecx*4]
sub esi, edx
mov dword [esp + 0x4c], eax
push esi
push edi
call fcn.00412f70
test eax, eax
js 0x413416
test esi, esi
je 0x41351b
test edi, edi
je 0x41351b
cmp esi, 2
jb 0x41351b
cmp byte [edi], 0x3f
jne 0x41350d
cmp byte [edi + 1], 0x3f
je 0x413516
dec esi
inc edi
cmp esi, 2
jae 0x413502
jmp 0x41351b
mov word [edi], 0x3233
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
mov dword [ebp - 4], edi
mov dword [esi - 4], 0x80000001
mov dword [esi], 0
lea eax, [edi + 8]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x40]
add eax, dword [esp + 0x1c]
mov dword [esi + 4], 0x80000001
mov dword [esi + 8], 0
mov dword [ebp], 0
mov dword [ebp + 4], 0
mov dword [ebp + 8], eax
mov ecx, dword [ecx]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413570
sub ecx, edx
add edi, 0x10
mov edx, dword [esp + 0x1c]
add esi, 0x10
add ebp, 0x14
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x10]
lea eax, [ecx + 4]
mov dword [esp + 0x30], esi
mov ecx, dword [esp + 0x3c]
and eax, 0xfffffffc
inc ecx
add edx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x3c], ecx
cmp ecx, dword [esp + 0x24]
jb 0x4134d0
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x10]
jmp 0x4135bf
mov edx, dword [esp + 0x1c]
mov esi, dword [0x437074]
push 0
push edx
push ebp
push ebx
mov ebx, dword [esp + 0x28]
push ebx
call esi
test eax, eax
je 0x41341a
cmp dword [esp + 0x124], 0
mov eax, dword [esp + 0x20]
jne 0x4135f5
mov dword [esp + 0x124], edi
mov dword [esp + 0x128], eax
mov dword [esp + 0xd0], eax
lea eax, [esp + 0x38]
push eax
push 0x40
push dword [esp + 0xa8]
mov dword [esp + 0xd8], edi
mov edi, dword [esp + 0x40]
push edi
push ebx
call fcn.00414140
test eax, eax
je 0x41341a
push 0
push 0x40
lea eax, [esp + 0x14c]
mov dword [esp + 0xac], 0
push eax
push edi
push ebx
call esi
test eax, eax
je 0x41341a
push 0
push 0xf8
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x18c]
add eax, edi
push eax
push ebx
call esi
test eax, eax
je 0x41341a
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x3c]
push dword [esp + 0xa8]
push edi
push ebx
call dword [0x437068]
test eax, eax
je 0x41341a
mov dword [esp + 0x44], 1
jmp 0x41341a