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

Disassembly:
mov eax, dword [esp + 0x78]
mov dword [esp + 0x6c], ecx
cmp eax, ecx
jle 0x4033e8
mov ebx, dword [esp + 0x74]
push ebp
mov dword [esp + 0x7c], eax
mov cl, byte [esp + 0x7c]
push 0
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
call fcn.00406570
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x20]
push ebp
call fcn.00406680
test al, al
je 0x4033a8
mov edi, dword [esp + 0x20]
mov ecx, ebp
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
mov byte [eax + ebp], 0
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x7c]
push edx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7c], 1
call fcn.00405be0
push 1
lea ecx, [esp + 0x20]
add ebx, 0x10
mov byte [esp + 0x74], 0
call fcn.00406570
mov eax, dword [esp + 0x7c]
dec eax
mov dword [esp + 0x7c], eax
jne 0x403355
pop ebp
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x40]
call fcn.00405720
add byte [eax], al
mov dword [esp + 0x4c], 0
mov byte [esp + 0x50], 0
mov dword [esp + 0x38], 0x416168
mov dl, byte [esp + 0x78]
push 0
lea ecx, [esp + 0x58]
mov byte [esp + 0x70], 2
mov byte [esp + 0x58], dl
call fcn.00406570
lea eax, [esp + 0x28]
mov edi, 0x416164
push eax
mov byte [esp + 0x70], 3
mov dword [esp + 0x3c], edi
call fcn.00408100
mov ecx, eax
call fcn.00407ef0
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 4
call fcn.004022a0
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 3
call fcn.00406570
push 0x18
lea ecx, [esp + 0x3c]
call fcn.00406c10
lea ecx, [esp + 0xc]
mov bl, 5
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], bl
call fcn.00406a70
call eax
mov esi, eax
add esp, 4
neg esi
lea edx, [esp + 0x74]
lea ecx, [esp + 0x18]
sbb esi, esi
push edx
push 0x419d40
inc esi
call fcn.00405f40
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x6c], 6
test eax, eax
je 0x4034c0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x38]
push eax
call fcn.00406a40
test eax, eax
je 0x4034c0
call eax
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], bl
call fcn.00406570
lea ecx, [esp + 0x38]
call fcn.00402030
mov dword [esp + 0x38], edi
mov al, byte [esp + 0x50]
mov bl, 8
cmp al, 1
mov byte [esp + 0x6c], bl
jne 0x40352d
lea ecx, [esp + 0x78]
push ecx
push 0x419d40
lea ecx, [esp + 0x20]
call fcn.00405f40
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x6c], 9
test eax, eax
je 0x40351e
lea edx, [esp + 0x18]
lea ecx, [esp + 0x38]
push edx
call fcn.00406a40
test eax, eax
je 0x40351e
call eax
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], bl
call fcn.00406570
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x70], 7
call fcn.00406570
lea ecx, [esp + 0x38]
call fcn.00401fd0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0x74], 0xffffffff
call fcn.00405980
mov ecx, dword [eax]
lea edx, [esp + 0x78]
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.00405c40
mov eax, dword [esp + 0x10]
push eax
call fcn.0040a382
mov ecx, dword [esp + 0x68]
add esp, 4
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x64
ret