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

Disassembly:
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x80]
jmp 0x4132a0
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x413582
cmp byte [esp + 0x74], 0
je 0x413582
cmp edx, 0xffffffff
je 0x413582
cmp edx, esi
jg 0x413582
push dword [esp + 0x88]
mov eax, dword [esp + 0x94]
push dword [esp + 0x88]
or eax, dword [esp + 0xa0]
push eax
push edx
mov edx, dword [esp + 0x8c]
push esi
push dword [esp + 0x78]
call fcn.00414140
add esp, 0x18
mov dword [esp + 0x8c], eax
test eax, eax
jle 0x413574
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x80]
mov edx, dword [ecx + 4]
mov dword [esp + 0x90], 0
mov edi, dword [ecx]
cmp edi, dword [ecx + 4]
je 0x447230
mov dword [esp + 0x10], edx
mov ecx, eax
mov dword [esp + 0x44], ecx
test ecx, ecx
je 0x413582
cmp ecx, 2
jge 0x41356a
xor edi, edi
cmp edi, ecx
jae 0x4132a0
mov esi, dword [esp + 0x24]
lea ecx, [edi*8]
mov dword [esp + 0x4c], ecx
cmp edi, eax
jge 0x44728d
mov eax, dword [esp + 0x64]
mov dword [esp + 0x40], eax
test edi, edi
js 0x41360a
mov eax, dword [esp + 0x84]
add eax, ecx
mov ecx, dword [0x4a574c]
mov dword [esp + 0x9c], eax
mov esi, dword [eax + 4]
sub esi, dword [eax]
lea eax, [esi*2 + 2]
push eax
cmp ecx, 0x416495
jne 0x4472a3
call fcn.0042594c
mov ecx, eax
mov dword [esp + 0x4c], ecx
add esp, 4
test ecx, ecx
je 0x413600
mov edx, dword [esp + 0x40]
lea eax, [esi + esi]
push eax
mov eax, dword [esp + 0xa0]
mov eax, dword [eax]
lea eax, [edx + eax*2]
push eax
push ecx
call fcn.00421080
mov eax, dword [esp + 0x54]
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x14], eax
mov word [eax + esi*2], cx
test esi, esi
je 0x4472b9
cmp esi, 0xffffffff
je 0x4472b9
test eax, eax
je 0x4472b9
add eax, dword ds:[eax]
add eax, dword ds:[eax]
mov eax, dword [ebx]
cmp eax, 1
jle 0x4135ca
dec eax
push 4
mov dword [ebx], eax
call fcn.00420ff6
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x413614
mov dword [ebx], 1
lea eax, [esi + 1]
mov dword [esp + 0x38], ebx
test eax, eax
je 0x41361b
add eax, 7
and eax, 0xfffffff8
xor ecx, ecx
mov dword [esp + 0x34], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420ff6
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], esi
add esi, esi
push esi
push dword [esp + 0x18]
push eax
call fcn.00421080
mov eax, dword [esp + 0x38]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
mov eax, dword [0x4a5748]
push dword [esp + 0x14]
cmp eax, 0x41614f
jne 0x413625
call fcn.00422f95
mov esi, dword [esp + 0x28]
add esp, 4
mov eax, dword [esp + 0x3c]
cmp esi, eax
je 0x413503
push 0x10
call fcn.00420ff6
add esp, 4
test eax, eax
je 0x41362c
mov ecx, dword [esp + 0x2c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
inc dword [ebx]
mov ecx, dword [esp + 0x20]
inc edi
mov dword [ecx + esi*4], eax
inc esi
mov ecx, dword [esp + 0x4c]
add ecx, 8
mov dword [esp + 0x24], esi
mov dword [esp + 0x4c], ecx
cmp edi, dword [esp + 0x44]
jae 0x41328a
mov eax, dword [esp + 0x8c]
jmp 0x413364
add eax, eax
mov dword [esp + 0x3c], eax
cmp eax, 8
jb 0x4135e1
xor ecx, ecx
mov dword [esp + 0x28], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420ff6
mov edx, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x40], eax
test edx, edx
je 0x413561
test esi, esi
je 0x413561
lea ecx, [esi*4]
push ecx
push edx
push eax
call fcn.00421080
add esp, 0xc
push dword [esp + 0x20]
call fcn.0042106c
mov eax, dword [esp + 0x44]
add esp, 4
mov dword [esp + 0x20], eax
jmp 0x4134aa
mov edi, 1
jmp 0x41334d
cmp dword [esp + 0x90], 0
jne 0x44724c
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4472cf
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x1c]
push eax
call fcn.00409890
lea ecx, [esp + 0x1c]
call fcn.00404024
lea ecx, [esp + 0x2c]
call fcn.00405a64
lea ecx, [esp + 0x64]
call fcn.00415c2e
lea ecx, [esp + 0x64]
call fcn.00405a64
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
lea ecx, [esp + 0x30]
call fcn.00408087
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
jmp 0x413464
mov eax, 8
mov dword [esp + 0x3c], eax
jmp 0x413512
mov esi, 0xfffffffa
jmp 0x4472b0
mov esi, 0xfffffff9
jmp 0x4472b0
xor ebx, ebx
jmp 0x41342e
mov eax, 8
jmp 0x413443
call eax
jmp 0x41349b
xor eax, eax
jmp 0x4134d5
cmp edi, esi
jne 0x44723c
lea edx, [esi + 1]
jmp 0x413330
mov dword [esp + 0x90], 0x10000010
jmp 0x413330
cmp eax, 0xffffffff
jne 0x413582
inc dword [esp + 0x10]
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x98], 0
call fcn.00415604
mov esi, dword [esp + 0x80]
mov ecx, eax
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x10]
jmp 0x413336
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x34]
call fcn.00407e8c
mov ebx, dword [esp + 0x38]
jmp 0x4134a2
call ecx
mov ecx, eax
mov dword [esp + 0x4c], eax
jmp 0x4133b6
mov eax, dword [esp + 0x14]
jmp 0x4133fe
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x34]
call fcn.00407e8c
mov ebx, dword [esp + 0x38]
jmp 0x413482
mov esi, dword [esp + 0x18]
push 0
push 1
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.00456aa3
jmp 0x41359b