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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x40c040]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00405320
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 0xc]
add edx, 0x14
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0xa0], 0
mov edx, dword [ebp - 0x74]
cmp edx, dword [ebp - 0x60]
je 0x405592
call fcn.00405320
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 0xc]
add edx, 0x14
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x48], 0
mov edx, dword [ebp - 0x58]
cmp edx, dword [ebp - 0x64]
je 0x405589
mov eax, dword [ebp - 0x58]
sub eax, 8
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
add ecx, 0x24
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x7c]
add edx, 8
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
movzx ecx, word [eax]
cmp ecx, 0x3f
jae 0x40557c
mov dword [ebp - 0x4c], 0
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x4c]
movzx edx, word [eax + ecx*2]
test edx, edx
je 0x40541b
cmp dword [ebp - 0x4c], 0x3f
jae 0x40541b
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x4c]
movsx eax, byte [ecx + edx*2]
push eax
call dword [sym.imp.ucrtbased.dll_toupper]
add esp, 4
mov ecx, dword [ebp - 0x4c]
mov byte [ebp + ecx - 0x44], al
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
jmp 0x4053db
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0x40
jae 0x405429
jmp 0x40542e
call fcn.00406b20
mov ecx, dword [ebp - 0x68]
mov byte [ebp + ecx - 0x44], 0
lea edx, [ebp - 0x44]
push edx
call fcn.00405270
add esp, 4
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
cmp eax, dword [ebp + 0xc]
jne 0x40557c
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x3c]
push edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.004055a0
add esp, 8
mov dword [ebp - 0x88], eax
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax + edx + 0x78]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call fcn.004055a0
add esp, 8
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x20], 0
je 0x40557c
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x24]
push edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.004055a0
add esp, 8
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.004055a0
add esp, 8
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.004055a0
add esp, 8
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x54], 0
jmp 0x40550b
mov ecx, dword [ebp - 0x54]
add ecx, 1
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
cmp eax, dword [edx + 0x18]
jae 0x40557c
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx + ecx*4]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004055a0
add esp, 8
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
push edx
call fcn.00405270
add esp, 4
cmp eax, dword [ebp + 8]
jne 0x40557a
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x94]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + edx*4]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call fcn.004055a0
add esp, 8
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
jmp 0x405592
jmp 0x405502
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
mov dword [ebp - 0x58], ecx
jmp 0x40539e
xor eax, eax
jmp 0x405592
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004067e0
mov esp, ebp
pop ebp
ret