Function at 0x409ec0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xe8
cmp dword [ecx + 0x20], 0
je 0x409f11
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xf], 0
test eax, eax
je 0x409f18
cmp al, 0x64
jb 0x409f27
lea ecx, [eax + eax*4]
lea ecx, [eax + ecx*8]
movzx edx, cx
shr edx, 0xc
imul ecx, edx, 0x64
sub al, cl
movzx eax, al
movzx eax, word [eax + eax + 0x43e528]
mov word [esp + 0xd], ax
mov ecx, 1
mov eax, edx
jmp 0x409f30
mov bl, 1
jmp 0x40a552
lea eax, [esp + 0xe]
mov dword [esp + 0x2c], eax
mov byte [esp + 0xe], 0x30
jmp 0x409f72
mov ecx, 3
cmp al, 9
ja 0x409f47
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea edx, [esp + ecx]
add edx, 0xb
mov dword [esp + 0x2c], edx
mov byte [esp + ecx + 0xb], al
jmp 0x409f72
mov ecx, eax
and ecx, 2
mov edx, eax
or eax, 2
imul eax, ecx
xor ecx, 2
and edx, 0x7d
imul edx, ecx
movzx eax, word [edx + eax + 0x43e528]
lea ecx, [esp + 0xd]
mov dword [esp + 0x2c], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.00406de0
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0xb8], eax
lea eax, [esp + 0xc3]
push eax
call fcn.004336a0
add esp, 4
mov dword [esp + 0xbc], edi
lea eax, [edi + 0x400]
push eax
call fcn.00408de0
add esp, 4
mov ebx, eax
mov dword [esp + 0x30], 0x4f4b5c4e
mov byte [esp + 0x34], 0xaa
mov dword [esp + 0x35], 0
mov dword [esp + 0x38], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xb
ja 0x40a032
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx edi, byte [esp + ecx + 0x30]
lea edx, [eax + 0x65]
mov ecx, edi
not ecx
or ecx, edx
and edx, edi
add edx, ecx
neg edx
add eax, edx
add eax, 0xefe6c64
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x3d
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xc
jb 0x409ff0
lea eax, [esp + 0x30]
mov ecx, esi
lea edx, [esp + 0xc3]
push edx
push eax
push ebx
call fcn.004097b0
mov dword [esp + 0x30], 0x93fcfae6
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3b], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xe
ja 0x40a0c4
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax - 0x3537faed]
mov edi, edx
and edi, ecx
xor edx, ecx
lea edx, [edx + edi*2]
add eax, 0x13
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0x7b
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xf
jb 0x40a080
mov ecx, esi
push dword [esp + 0x2c]
lea eax, [esp + 0x34]
push eax
push ebx
call fcn.004097b0
mov eax, dword [str.MeHdy4__p20new]
mov dword [esp + 0x30], 0x83687272
mov dword [esp + 0x34], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 7
ja 0x40a142
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x30]
lea edi, [ecx + edx]
add edi, 0xc3077f41
add ecx, 0xc3077f41
and ecx, edx
add ecx, ecx
sub edi, ecx
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x10]
add cl, 0x39
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 8
jb 0x40a100
mov ecx, esi
push eax
lea eax, [esp + 0x34]
push eax
push ebx
call fcn.004097b0
mov dword [esp + 0x30], 0x676c6473
mov dword [esp + 0x34], 0x7463685b
mov dword [esp + 0x38], 0x6e6d687b
mov byte [esp + 0x3c], 0x8c
mov dword [esp + 0x3d], 0
mov byte [esp + 0x41], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x11
ja 0x40a1e0
nop
nop
nop
nop
nop
mov edx, dword [esp + 4]
mov eax, dword [esp + 4]
movzx edi, byte [esp + eax + 0x30]
lea eax, [edx + 0x38e5a040]
lea ecx, [edx + edi]
add ecx, 0x38e5a040
add edx, 0x40
and edx, edi
and eax, edi
add eax, edx
mov edx, eax
xor edx, ecx
not eax
and eax, ecx
add eax, eax
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x40
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x12
jb 0x40a190
mov dword [esp + 0x10], 0xfb6c5c25
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 7
ja 0x40a250
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx edx, byte [esp + ecx + 0x10]
mov ecx, 0xd65f5c0
sub ecx, eax
add eax, 0x3f
and eax, edx
or ecx, edx
not ecx
add ecx, edx
sub ecx, eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 4]
add al, 0x47
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 8
jb 0x40a210
lea edx, [esp + 0x10]
mov ecx, esi
lea eax, [esp + 0x30]
push eax
push edx
push ebx
call fcn.004097b0
mov dword [esp + 0x30], 0x9c949290
mov byte [esp + 0x34], 0x3a
mov dword [esp + 0x35], 0
mov dword [esp + 0x38], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xb
ja 0x40a2cd
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax + 0x7bf9387]
add eax, 0x87
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0x4f
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xc
jb 0x40a290
mov ecx, esi
push dword [esp + 0xbc]
push dword [esp + 0xbc]
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.00409a80
mov eax, dword [esi + 0x60]
mov dword [esp + 0x30], 0x8375854b
mov dword [esp + 0x34], 0x8f7c8170
mov dword [esp + 0x38], 0x8b7e8d65
mov dword [esp + 0x3c], 0x97bb8976
mov dword [esp + 0x40], 0x9313954a
mov dword [esp + 0x44], 0x9f7b9162
mov dword [esp + 0x48], 0x9bbc9d58
mov dword [esp + 0x4c], 0xa7639969
mov dword [esp + 0x50], 0xa358a552
mov dword [esp + 0x54], 0xaf50a155
mov dword [esp + 0x58], 0xab52ad41
mov dword [esp + 0x5c], 0xb799a956
mov dword [esp + 0x60], 0xb345b55c
mov dword [esp + 0x64], 0xbf43b14c
mov dword [esp + 0x68], 0xbb50bd8d
mov dword [esp + 0x6c], 0x4744b955
mov dword [esp + 0x70], 0x438145a9
mov dword [esp + 0x74], 0x4fae4162
mov dword [esp + 0x78], 0x4bb74dbf
mov dword [esp + 0x7c], 0x57a449b8
mov dword [esp + 0x80], 0x53aa55b9
mov dword [esp + 0x84], 0x5f9351d5
mov dword [esp + 0x88], 0x5bb75db0
mov dword [esp + 0x8c], 0x67635962
mov dword [esp + 0x90], 0x638f658a
mov dword [esp + 0x94], 0x6f976159
mov dword [esp + 0x98], 0x6b806d9e
mov dword [esp + 0x9c], 0x7785699b
mov dword [esp + 0xa0], 0x739f7581
mov dword [esp + 0xa4], 0x7f8e718c
mov dword [esp + 0xa8], 0x7b437d95
mov dword [esp + 0xac], 0x76e7969
mov word [esp + 0xb0], 0x506
mov word [esp + 0xb6], 0
mov dword [esp + 0xb2], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x87
ja 0x40a495
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x30]
lea edi, [ecx + edx]
add ecx, 0xc1
and ecx, edx
add ecx, ecx
sub edi, ecx
add edi, 0x4be78bc1
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x10]
add cl, 0xb9
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x88
jb 0x40a450
mov dword [esp + 0x10], 0xabcbadff
mov dword [esp + 0x14], 0xd7bfa938
mov word [esp + 0x18], 0xd5d4
mov dword [esp + 0x1e], 0
mov dword [esp + 0x1a], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 0x11
ja 0x40a51b
nop
nop
nop
mov ecx, dword [esp + 8]
mov edx, dword [esp + 8]
movzx edx, byte [esp + edx + 0x10]
lea edi, [ecx - 0x2bff8ec6]
add ecx, 0x3a
and ecx, edx
or edi, edx
sub edi, ecx
mov dword [esp + 4], edi
mov ecx, dword [esp + 4]
add cl, 0x6a
mov edx, dword [esp + 8]
mov byte [esp + edx + 0x10], cl
mov ecx, dword [esp + 8]
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 8]
cmp ecx, 0x12
jb 0x40a4d0
push 0x493e0
push eax
push ebx
push 0
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040dc50
add esp, 0x1c
mov ecx, ebx
mov ebx, eax
push ecx
call fcn.00408df0
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret