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

Disassembly:
add esp, 4
pop esi
push eax
add eax, 0xb74
pop eax
push esi
sub esi, 0x1223c
xor esi, 0xff0d
sub esi, 0x3831
pop esi
cmp dword [ebp - 0x15fc], 0
jne 0x406465
mov dword [ebp - 0x31c], 0
mov ecx, dword [ebp - 0x15fc]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0xcb4], eax
push edi
xor edi, 0x11594
sub edi, 0x1182e
pop edi
push ebx
push edx
add esp, 4
or ebx, 0x180e8
pop ebx
push eax
push edi
add esp, 4
xor eax, 0xfa65
xor eax, 0x59e1
sub eax, 0x10de5
pop eax
cmp dword [ebp - 0xcb4], 0
jne 0x4064c1
mov dword [ebp - 0x31c], 0
jmp 0x40670c
mov ecx, dword [ebp - 0xcb4]
mov dword [ebp - 0x50c], ecx
push edx
push ecx
add esp, 4
sub edx, 0xf7d5
pop edx
push esi
and esi, 0x10548
xor esi, 0x13ef7
and esi, 0x181f9
add esi, 0x7b4c
pop esi
push ebx
push edi
add esp, 4
add ebx, 0x17c31
pop ebx
lea edx, [ebp - 0x1738]
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 - 0x218], dx
xor eax, eax
mov word [ebp - 0x34], ax
push eax
or eax, 0x713c
sub eax, 0xc1c7
call 0x406544
add byte [ecx + eax*2], bh
xor eax, 0x4c343546
inc ebp
add esp, 4
pop eax
push edi
jmp 0x406552
pop edi
push edi
xor edi, 0xed25
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 - 0x218], 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 eax
push edx
add esp, 4
add eax, 0x17bdb
and eax, 0x682f
sub eax, 0x5814
add eax, 0x17596
pop eax
push edx
and edx, 0x12512
sub edx, 0xb3ad
and edx, 0x6a36
pop edx
movzx eax, word [ebp - 0x34]
test eax, eax
jne 0x406601
movzx ecx, word [ebp - 0x218]
movzx edx, word [ebp - 0x34]
sub ecx, edx
mov dword [ebp - 0x1604], ecx
jmp 0x40665b
movzx eax, word [ebp - 0x218]
movzx ecx, word [ebp - 0x34]
cmp eax, ecx
je 0x406529
movzx edx, word [ebp - 0x218]
xor edx, 0x20
movzx eax, word [ebp - 0x34]
cmp edx, eax
je 0x406529
movzx ecx, word [ebp - 0x218]
movzx edx, word [ebp - 0x34]
cmp ecx, edx
jge 0x406645
mov dword [ebp - 0x1600], 0xffffffff
jmp 0x40664f
mov dword [ebp - 0x1600], 1
mov eax, dword [ebp - 0x1600]
mov dword [ebp - 0x1604], eax
cmp dword [ebp - 0x1604], 0
jne 0x4066a4
push eax
or eax, 0x170be
xor eax, 0x11b42
or eax, 0xaaee
sub eax, 0x4342
pop eax
push ecx
push edx
add esp, 4
and ecx, 0x109a2
pop ecx
push ecx
push eax
add esp, 4
xor ecx, 0xfd1d
pop ecx
mov ecx, dword [ebp - 0x50c]
mov dword [ebp - 0x31c], ecx
jmp 0x40670c
push edi
push edx
add esp, 4
add edi, 0xdb16
pop edi
push esi
push edx
add esp, 4
add esi, 0x2b88
jmp 0x4066c0
pop esi
push ebx
push esi
add esp, 4
call 0x4066d2
add byte [esi + 0x50], al
inc ecx
cmp byte [ecx + 0x36], cl
add esp, 4
pop ebx
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 0x406702
mov edx, dword [ebp - 0x50c]
cmp dword [edx + 0x30], 0
jne 0x4064cd
mov dword [ebp - 0x31c], 0