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

Disassembly:
push edi
push edx
add esp, 4
add edi, 0xf882
xor edi, 0x1279b
and edi, 0x13dd4
xor edi, 0x10f43
pop edi
push edi
and edi, 0x2e32
and edi, 0xba7b
and edi, 0x1560f
pop edi
lea ecx, [ebp - 0x17ac]
mov dword [ebp - 0xce0], ecx
mov edx, dword [ebp - 0x514]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0xcdc], eax
xor ecx, ecx
mov word [ebp - 0x23c], cx
xor edx, edx
mov word [ebp - 0x50], dx
push ecx
jmp 0x409ecc
add ecx, 0xbc
sub ecx, 0x11091
sub ecx, 0x15e9c
pop ecx
push ebx
push ebx
add esp, 4
or ebx, 0x9cc
xor ebx, 0x229f
add ebx, 0xb68f
pop ebx
mov eax, dword [ebp - 0xcdc]
mov cx, word [eax]
mov word [ebp - 0x1056], cx
mov edx, dword [ebp - 0xcdc]
add edx, 2
mov dword [ebp - 0xcdc], edx
mov ax, word [ebp - 0x1056]
mov word [ebp - 0x23c], ax
mov ecx, dword [ebp - 0xce0]
mov dx, word [ecx]
mov word [ebp - 0x1058], dx
mov eax, dword [ebp - 0xce0]
add eax, 2
mov dword [ebp - 0xce0], eax
mov cx, word [ebp - 0x1058]
mov word [ebp - 0x50], cx
push ecx
and ecx, 0x162a3
add ecx, 0xdc25
xor ecx, 0x11e4
pop ecx
push eax
push edx
add esp, 4
add eax, 0xd682
add eax, 0x4950
pop eax
push edx
push ecx
add esp, 4
and edx, 0x10696
pop edx
movzx edx, word [ebp - 0x50]
test edx, edx
jne 0x409f9d
movzx eax, word [ebp - 0x23c]
movzx ecx, word [ebp - 0x50]
sub eax, ecx
mov dword [ebp - 0x1638], eax
jmp 0x409ff7
movzx edx, word [ebp - 0x23c]
movzx eax, word [ebp - 0x50]
cmp edx, eax
je 0x409ec5
movzx ecx, word [ebp - 0x23c]
xor ecx, 0x20
movzx edx, word [ebp - 0x50]
cmp ecx, edx
je 0x409ec5
movzx eax, word [ebp - 0x23c]
movzx ecx, word [ebp - 0x50]
cmp eax, ecx
jge 0x409fe1
mov dword [ebp - 0x1634], 0xffffffff
jmp 0x409feb
mov dword [ebp - 0x1634], 1
mov edx, dword [ebp - 0x1634]
mov dword [ebp - 0x1638], edx
cmp dword [ebp - 0x1638], 0
jne 0x40a040
push eax
xor eax, 0x7a1
add eax, 0x5d63
pop eax
push ebx
push edx
add esp, 4
sub ebx, 0x175a5
and ebx, 0x5ec5
xor ebx, 0x47
pop ebx
push ebx
push eax
add esp, 4
or ebx, 0x9222
pop ebx
mov eax, dword [ebp - 0x514]
mov dword [ebp - 0x778], eax
jmp 0x40a0a8
push edi
push ecx
add esp, 4
and edi, 0xbc12
call 0x40a05b
add byte [esi], bh
dec ebx
dec esi
xor eax, 0x464c3a4f
dec ebx
add esp, 4
pop edi
push edi
jmp 0x40a065
pop edi
push edi
push edi
add esp, 4
xor edi, 0xb93b
pop edi
mov ecx, dword [ebp - 0x514]
mov edx, dword [ecx]
mov dword [ebp - 0x514], edx
mov eax, dword [ebp - 0x514]
cmp eax, dword [ebp - 0xce4]
je 0x40a09e
mov ecx, dword [ebp - 0x514]
cmp dword [ecx + 0x30], 0
jne 0x409e69
mov dword [ebp - 0x778], 0
push esi
xor esi, 0x5797
and esi, 0xf8c4
sub esi, 0xdc87
pop esi
push edx
push esi
add esp, 4
and edx, 0xa9c
jmp 0x40a0cd
and edx, 0x174c5
or edx, 0x3fdc
pop edx
cmp dword [ebp - 0x778], 0
jne 0x40a124
push edi
push eax
add esp, 4
sub edi, 0xe4bf
pop edi
push edi
xor edi, 0x13ef9
call 0x40a105
add byte [esi + ecx*2 + 0x32], al
inc ebp
cmp eax, 0x4b363549
add esp, 4
xor edi, 0x108de
and edi, 0x11593
pop edi
mov dword [ebp - 0xae0], 0
jmp 0x40ac4c
push edi
jmp 0x40a12a
xor edi, 0x1445
jmp 0x40a139
pop edi
push ecx
xor ecx, 0x8b26
and ecx, 0x969d
or ecx, 0x11fb5
pop ecx
push eax
xor eax, 0xfd92
pop eax
mov edx, dword [ebp - 0x778]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x35c], eax
mov dword [ebp - 0x788], 0
mov ecx, dword [ebp - 0x35c]
mov dword [ebp - 0x163c], ecx
cmp dword [ebp - 0x163c], 0
jne 0x40a195
mov edx, dword [ebp - 0x788]
mov dword [ebp - 0x3f8], edx
jmp 0x40a486
mov eax, dword [ebp - 0x163c]
mov ecx, dword [ebp - 0x35c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x1640], ecx
jne 0x40a1bd
mov edx, dword [ebp - 0x788]
mov dword [ebp - 0x3f8], edx
jmp 0x40a486
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x1640]
mov eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0x1684], eax
cmp dword [ebp - 0x1684], 0
jne 0x40a1ef
mov ecx, dword [ebp - 0x788]
mov dword [ebp - 0x3f8], ecx
jmp 0x40a486
mov edx, dword [ebp - 0x35c]
add edx, dword [ebp - 0x1684]
mov dword [ebp - 0x77c], edx
jne 0x40a214
mov eax, dword [ebp - 0x788]
mov dword [ebp - 0x3f8], eax
jmp 0x40a486
mov ecx, dword [ebp - 0x77c]
mov edx, dword [ebp - 0x35c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x19cc], edx
mov eax, dword [ebp - 0x77c]
mov ecx, dword [ebp - 0x35c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x19d0], ecx
mov edx, dword [ebp - 0x77c]
mov eax, dword [ebp - 0x35c]
add eax, dword [edx + 0x1c]
invalid
invalid
invalid