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

Disassembly:
sub esp, 0x64
mov eax, dword [0x42482c]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x70]
test ebx, ebx
push ebp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x78]
mov ebp, ecx
mov ecx, 0xf
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
jne 0x413394
pop ebp
mov eax, 0x80070057
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004144ff
add esp, 0x64
ret 0xc
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4133a6
mov ecx, ebp
call fcn.004132a0
mov ecx, dword [esp + 0x64]
push esi
mov esi, dword [esp + 0x74]
mov eax, esi
sub eax, 0
je 0x41356c
dec eax
push edi
je 0x413434
dec eax
je 0x4133e9
cmp ecx, 0x10
jb 0x4133cf
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00413f9d
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x80070057
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004144ff
add esp, 0x64
ret 0xc
push 0x41ff5c
lea ecx, [esp + 0x20]
call fcn.00401bb0
lea edx, [esp + 0x1c]
push edx
lea ecx, [ebp + 0xc]
call fcn.00412ca0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x60]
call fcn.00401910
cmp dword [esp + 0x34], 0x10
jb 0x413426
mov eax, dword [esp + 0x20]
push eax
call fcn.00413f9d
add esp, 4
mov edi, dword [esp + 0x68]
mov dword [esp + 0x10], 6
jmp 0x41347d
push 0x41ff7c
lea ecx, [esp + 0x3c]
call fcn.00401bb0
lea ecx, [esp + 0x38]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00412ca0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x60]
call fcn.00401910
cmp dword [esp + 0x50], 0x10
jb 0x413471
mov edx, dword [esp + 0x3c]
push edx
call fcn.00413f9d
add esp, 4
mov edi, dword [esp + 0x68]
mov eax, edi
shr eax, 1
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x14]
movzx edx, byte [ecx]
mov eax, dword [esp + 0x10]
cmp edx, eax
jae 0x4134bc
mov byte [ecx], al
cmp dword [esp + 0x6c], 0x10
jb 0x4134a2
mov eax, dword [esp + 0x58]
push eax
call fcn.00413f9d
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x8007000e
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004144ff
add esp, 0x64
ret 0xc
cmp esi, 2
jne 0x413508
xor esi, esi
inc edi
mov eax, 0xaaaaaaab
mul edi
mov ebx, edx
shr ebx, 1
xor edi, edi
cmp ebx, 6
mov eax, 6
ja 0x4134dd
mov eax, ebx
cmp esi, eax
jae 0x413537
cmp dword [esp + 0x6c], 0x10
mov eax, dword [esp + 0x58]
jae 0x4134f0
lea eax, [esp + 0x58]
lea ecx, [edi + eax]
push ecx
mov ecx, ebp
call fcn.00411cd0
mov edx, dword [esp + 0x18]
mov byte [edx + esi], al
inc esi
add edi, 3
jmp 0x4134d1
cmp esi, 1
jne 0x413537
shr edi, 1
xor esi, esi
test edi, edi
jbe 0x413537
cmp dword [esp + 0x6c], 0x10
mov eax, dword [esp + 0x58]
jae 0x413524
lea eax, [esp + 0x58]
lea eax, [eax + esi*2]
push eax
mov ecx, ebp
call fcn.00411cd0
mov byte [ebx + esi], al
inc esi
cmp esi, edi
jb 0x413515
cmp dword [esp + 0x6c], 0x10
mov cl, byte [esp + 0x10]
mov edx, dword [esp + 0x14]
mov byte [edx], cl
jb 0x413555
mov eax, dword [esp + 0x58]
push eax
call fcn.00413f9d
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004144ff
add esp, 0x64
ret 0xc
cmp ecx, 0x10
jb 0x41357e
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00413f9d
add esp, 4
mov ecx, dword [esp + 0x6c]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x80004001
call fcn.004144ff
add esp, 0x64
ret 0xc