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

Disassembly:
cmp dword [ebp - 0x15f4], 0
jne 0x409d7a
mov dword [ebp - 0x318], 0
jmp 0x40a021
mov ecx, dword [ebp - 0x15f4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0xcb4], eax
push ebx
push eax
add esp, 4
jmp 0x409d98
call 0x409da4
add byte [eax + 0x4a], al
cmp al, 0x47
inc eax
dec edx
add esp, 4
call 0x409db4
add byte [ebx + 0x3f], al
xor eax, 0x32393b3d
add esp, 4
and ebx, 0xa997
pop ebx
cmp dword [ebp - 0xcb4], 0
jne 0x409dd6
mov dword [ebp - 0x318], 0
jmp 0x40a021
mov ecx, dword [ebp - 0xcb4]
mov dword [ebp - 0x50c], ecx
push esi
xor esi, 0x580a
pop esi
push eax
push esi
add esp, 4
and eax, 0xd8a1
and eax, 0x2589
xor eax, 0xeaba
add eax, 0x13828
pop eax
push ecx
push edi
add esp, 4
xor ecx, 0x33ba
pop ecx
lea edx, [ebp - 0x1734]
mov dword [ebp - 0xcb0], edx
mov eax, dword [ebp - 0x50c]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xcac], ecx
xor edx, edx
mov word [ebp - 0x214], dx
xor eax, eax
mov word [ebp - 0x34], ax
push ecx
add ecx, 0xaf8f
jmp 0x409e4b
and ecx, 0xc0a3
pop ecx
push edi
push edi
add esp, 4
and edi, 0xf797
or edi, 0xf363
and edi, 0xe367
sub edi, 0x6713
pop edi
mov ecx, dword [ebp - 0xcac]
mov dx, word [ecx]
mov word [ebp - 0x103a], dx
mov eax, dword [ebp - 0xcac]
add eax, 2
mov dword [ebp - 0xcac], eax
mov cx, word [ebp - 0x103a]
mov word [ebp - 0x214], cx
mov edx, dword [ebp - 0xcb0]
mov ax, word [edx]
mov word [ebp - 0x103c], ax
mov ecx, dword [ebp - 0xcb0]
add ecx, 2
mov dword [ebp - 0xcb0], ecx
mov dx, word [ebp - 0x103c]
mov word [ebp - 0x34], dx
push ebx
push eax
add esp, 4
xor ebx, 0x4bc7
pop ebx
push esi
push ebx
add esp, 4
xor esi, 0x7904
xor esi, 0x1707c
add esi, 0x13894
or esi, 0x2cb
pop esi
push ecx
sub ecx, 0x64f6
pop ecx
movzx eax, word [ebp - 0x34]
test eax, eax
jne 0x409f16
movzx ecx, word [ebp - 0x214]
movzx edx, word [ebp - 0x34]
sub ecx, edx
mov dword [ebp - 0x15fc], ecx
jmp 0x409f70
movzx eax, word [ebp - 0x214]
movzx ecx, word [ebp - 0x34]
cmp eax, ecx
je 0x409e3e
movzx edx, word [ebp - 0x214]
xor edx, 0x20
movzx eax, word [ebp - 0x34]
cmp edx, eax
je 0x409e3e
movzx ecx, word [ebp - 0x214]
movzx edx, word [ebp - 0x34]
cmp ecx, edx
jge 0x409f5a
mov dword [ebp - 0x15f8], 0xffffffff
jmp 0x409f64
mov dword [ebp - 0x15f8], 1
mov eax, dword [ebp - 0x15f8]
mov dword [ebp - 0x15fc], eax
cmp dword [ebp - 0x15fc], 0
jne 0x409fb9
push ecx
call 0x409f8a
add byte [eax], bh
inc ecx
inc esp
dec ebx
cmp al, 0x41
dec ebx
dec ebx
cmp eax, 0x4c48332
call 0x409f9b
add byte [ebx], dh
cmp cl, byte [eax + 0x38]
aas
cmp al, 0x42
dec eax
add esp, 4
sub ecx, 0x12e5a
or ecx, 0xd7b9
pop ecx
mov ecx, dword [ebp - 0x50c]
mov dword [ebp - 0x318], ecx
jmp 0x40a021
push esi
push eax
add esp, 4
les eax, [ecx + eax*4]
out dx, al
pop edi
or al, byte [eax]
add bl, ch
invalid
sub esi, 0x17b45
add esi, 0x1a54
pop esi
push edi
call 0x409fe7
add byte [eax + edx*2], bh
cmp al, 0x42
inc edi
aaa
dec ecx
xor dh, byte [edi]
add esp, 4
pop edi
mov edx, dword [ebp - 0x50c]
mov eax, dword [edx]
mov dword [ebp - 0x50c], eax
mov ecx, dword [ebp - 0x50c]
cmp ecx, dword [ebp - 0xcb4]
je 0x40a017
mov edx, dword [ebp - 0x50c]
cmp dword [edx + 0x30], 0
jne 0x409de2
mov dword [ebp - 0x318], 0
push edi
push esi
add esp, 4
add edi, 0x1418e
pop edi
push eax
and eax, 0xcb2d
add eax, 0x4323
pop eax
push edi
push ebx
add esp, 4
sub edi, 0xb257
and edi, 0x92eb
and edi, 0x13d2d
pop edi
mov eax, dword [ebp - 0x318]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x324], ecx
push eax
push esi
add esp, 4
call 0x40a075
add byte [edi + 0x3c], cl
push eax
inc esi
aaa
cmp dword ds:[edi], esi
add esp, 4
pop eax
push ebx
xor ebx, 0x1498d
add ebx, 0x1719f
jmp 0x40a08e
jmp 0x40a093
pop ebx
mov dword [ebp - 0x770], 0
mov edx, dword [ebp - 0x324]
mov dword [ebp - 0x1600], edx
cmp dword [ebp - 0x1600], 0
jne 0x40a0c4
mov eax, dword [ebp - 0x770]
invalid
invalid