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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
test cl, cl
mov dword [esp + 0x48], eax
mov eax, dword [0x4d7138]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x1c], eax
mov eax, dword [0x4d7134]
mov dword [esp + 0x40], eax
je 0x40332d
mov eax, dword [0x4d7128]
test eax, eax
je 0x4036c0
mov ecx, 2
mov edi, 0x4893b5
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 0x28], 0
seta cl
setb dl
cmp cl, dl
jne 0x4036cd
mov eax, dword [0x4d7124]
test eax, eax
je 0x403335
mov ecx, 2
mov edi, 0x4893b5
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 0x2c], 0
seta cl
setb dl
cmp cl, dl
je 0x40333d
mov dword [esp + 8], 0
mov dword [esp + 4], 0x48d8f1
mov dword [esp], eax
call fcn.004536a0
mov dword [esp + 0x2c], eax
jmp 0x40333d
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov eax, dword [0x4d7120]
mov dword [esp + 0x30], 0
test eax, eax
je 0x40336a
mov dword [esp + 8], 0
mov dword [esp + 4], 0x48d8f1
mov dword [esp], eax
call fcn.004536a0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x403728
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x403745
mov dword [esp], eax
xor ebp, ebp
call sub.msvcrt.dll_strlen
mov byte [esp + 0x14], 0
mov byte [esp + 0x27], 0
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x403664
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov ebx, eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
test ebp, ebp
mov dword [esp + 0x44], eax
je 0x40367f
mov eax, dword [esp + 0x48]
mov esi, dword [eax]
test esi, esi
je 0x4035e2
lea eax, [ebx + 1]
mov dword [esp + 0x20], eax
mov eax, edi
mov edi, esi
add eax, 1
mov dword [esp + 0x34], eax
jmp 0x403458
mov eax, dword [edi + 8]
test eax, eax
jne 0x40344d
mov esi, dword [edi + 0x10]
test esi, esi
je 0x403566
cmp byte [esp + 0x27], 0
jne 0x40344d
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
test eax, eax
jne 0x403581
mov byte [ebp + ebx], 0
mov eax, dword [esp + 0x78]
mov dword [esp], ebp
mov dword [esp + 4], eax
call dword [esp + 0x74]
test eax, eax
jne 0x4034fe
mov edi, dword [edi + 4]
test edi, edi
je 0x4035e2
mov esi, dword [edi]
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov dword [esp + 4], esi
mov dword [esp], ebp
mov dword [esp + 8], eax
mov ebx, eax
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x14], 0
jne 0x403408
mov eax, dword [esp + 0x20]
lea ecx, [ebp + ebx]
mov dword [esp], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x78]
mov dword [esp], ebp
mov dword [esp + 4], eax
call dword [esp + 0x74]
mov ecx, dword [esp + 0x18]
test eax, eax
jne 0x4034fe
mov eax, dword [edi + 8]
cmp eax, 2
je 0x4035a0
test eax, eax
jne 0x40344d
mov eax, dword [0x4d7120]
test eax, eax
je 0x403735
mov eax, dword [esp + 0x34]
mov dword [esp], ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x78]
mov dword [esp], ebp
mov dword [esp + 4], eax
call dword [esp + 0x74]
test eax, eax
je 0x403408
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x403532
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x40354a
mov dword [esp], edx
mov dword [esp + 0x14], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x14]
cmp ebp, eax
je 0x40355e
mov dword [esp], ebp
mov dword [esp + 0x14], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x14]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [esp + 0x14], 0
jne 0x40344d
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
test eax, eax
je 0x403431
add ebx, ebp
add eax, 1
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
jmp 0x403436
mov eax, dword [esp + 0x44]
mov dword [esp], ecx
mov dword [esp + 0x18], ecx
add eax, 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x78]
mov dword [esp], ebp
mov dword [esp + 4], eax
call dword [esp + 0x74]
test eax, eax
jne 0x4034fe
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x18]
jmp 0x4034be
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4036ac
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40366b
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [0x4d7138]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [0x4d7134]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x403678
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x2c], 0
test eax, eax
mov dword [esp + 0x28], 0
jne 0x4033b6
xor edi, edi
jmp 0x4033c0
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x14], 1
test eax, eax
jne 0x403630
mov byte [esp + 0x27], 1
jmp 0x403638
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x70]
add edx, dword [eax]
cmp ebx, edi
mov eax, edi
cmovae eax, ebx
cmp eax, ecx
cmovb eax, ecx
lea eax, [edx + eax + 1]
mov dword [esp], eax
call fcn.004534b0
mov ebp, eax
jmp 0x4033e6
mov edx, dword [esp + 0x28]
test edx, edx
jne 0x4035ee
xor eax, eax
jmp 0x40354a
mov dword [esp + 0x28], 0
jmp 0x4032e6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x48d8f1
mov dword [esp], eax
call fcn.004536a0
mov dword [esp + 8], 0
mov ebx, eax
mov dword [esp + 0x28], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.004536a0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004536a0
mov dword [esp + 0x40], eax
jmp 0x4032e6
mov dword [esp + 0x3c], 0
jmp 0x403386
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x40341a
jmp 0x403571
xor ebp, ebp
mov byte [esp + 0x14], 0
mov byte [esp + 0x27], 0
mov dword [esp + 0x38], 0
jmp 0x4033aa