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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xd4
cmp dword [ecx + 0x20], 0
je 0x40a739
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xb], 0
test eax, eax
je 0x40a740
cmp al, 0x64
jb 0x40a74f
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*8]
shr edx, 0xc
imul ecx, edx, 0x64
sub al, cl
movzx eax, al
movzx eax, word [eax + eax + 0x439318]
mov word [esp + 9], ax
mov ecx, 0xfffffffd
mov eax, edx
jmp 0x40a758
mov bl, 1
jmp 0x40acb0
lea eax, [esp + 0xa]
mov dword [esp + 0x1c], eax
mov byte [esp + 0xa], 0x30
jmp 0x40a79b
mov ecx, 0xffffffff
cmp al, 9
ja 0x40a770
lea edx, [esp + 0xc]
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
add edx, ecx
dec edx
mov dword [esp + 0x1c], edx
mov byte [esp + ecx + 0xb], al
jmp 0x40a79b
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 + 0x439318]
lea ecx, [esp + 9]
mov dword [esp + 0x1c], ecx
mov word [esp + 9], ax
lea eax, [esi + 0x10]
push eax
call fcn.004074c0
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x20], eax
lea ebp, [esp + 0xb3]
push ebp
call fcn.0042f290
add esp, 4
mov dword [esp + 0x24], edi
lea eax, [edi + 0x400]
push eax
call fcn.00409540
add esp, 4
mov edi, eax
mov dword [esp + 0x28], 0x5f5b4e58
mov byte [esp + 0x2c], 0x3c
mov dword [esp + 0x2d], 0
mov dword [esp + 0x30], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xb
ja 0x40a853
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x28]
lea edx, [eax + 0x2cca4bb4]
lea ebx, [eax + ecx]
add ebx, 0x2cca4bb4
add eax, 0xb4
or eax, edx
and eax, ecx
add eax, eax
sub ebx, eax
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0xc]
add al, 0x7c
mov ecx, dword [esp]
mov byte [esp + ecx + 0x28], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xc
jb 0x40a810
lea ebx, [esp + 0x28]
mov ecx, esi
push ebp
push ebx
push edi
call fcn.0040a020
mov dword [esp + 0x28], 0x16a6c74
mov dword [esp + 0x2c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x40a8bb
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x28]
lea edx, [eax + ecx]
add edx, 0x8536f401
add eax, 0x8536f401
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
add al, 0xfb
mov ecx, dword [esp]
mov byte [esp + ecx + 0x28], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x40a880
mov ecx, esi
push dword [esp + 0x1c]
push ebx
push edi
call fcn.0040a020
mov eax, dword [str.WpM2Co__SUSELL]
mov dword [esp + 0x28], 0xc3a6a8ac
mov word [esp + 0x2c], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 5
ja 0x40a920
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x28]
add ecx, 0x18002f50
xor ecx, edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
add cl, 0x70
mov edx, dword [esp]
mov byte [esp + edx + 0x28], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 6
jb 0x40a8f0
mov ecx, esi
push eax
push ebx
push edi
call fcn.0040a020
mov dword [esp + 0x28], 0x6d506859
mov dword [esp + 0x2c], 0x506d5461
mov dword [esp + 0x30], 0x66676c51
mov byte [esp + 0x34], 0xc8
mov dword [esp + 0x35], 0
mov byte [esp + 0x39], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x11
ja 0x40a99e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x28]
add eax, 0xe7862a31
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0xb
mov ecx, dword [esp]
mov byte [esp + ecx + 0x28], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x12
jb 0x40a970
mov dword [esp + 0xc], 0x118a7a7f
mov word [esp + 0x10], 0
mov byte [esp + 0x12], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 6
ja 0x40aa01
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0xc]
add eax, 0x907e9785
xor eax, ecx
mov dword [esp], eax
mov eax, dword [esp]
add al, 0x67
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0xc], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 7
jb 0x40a9d0
lea ebp, [esp + 0xc]
mov ecx, esi
push ebx
push ebp
push edi
call fcn.0040a020
mov dword [esp + 0x28], 0x4246444e
mov byte [esp + 0x2c], 0x28
mov word [esp + 0x2d], 0
mov byte [esp + 0x2f], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x40aa6e
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x28]
add eax, 0x84255ab7
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x6d
mov ecx, dword [esp]
mov byte [esp + ecx + 0x28], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x40aa40
mov ecx, esi
push dword [esp + 0x24]
push dword [esp + 0x24]
push ebx
push edi
call fcn.0040a2b0
mov eax, dword [esi + 0x60]
mov dword [esp + 0x28], 0xe91beb21
mov dword [esp + 0x2c], 0xed1aef1a
mov dword [esp + 0x30], 0xf100f307
mov dword [esp + 0x34], 0xf5c5f704
mov dword [esp + 0x38], 0xf905fb20
mov dword [esp + 0x3c], 0xfd15ff08
mov dword [esp + 0x40], 0x81a283c2
mov dword [esp + 0x44], 0x857d8773
mov dword [esp + 0x48], 0x897e8b68
mov dword [esp + 0x4c], 0x8d7e8f67
mov dword [esp + 0x50], 0x9164936b
mov dword [esp + 0x54], 0x95a79764
mov dword [esp + 0x58], 0x996b9b7e
mov dword [esp + 0x5c], 0x9d6d9f6e
mov dword [esp + 0x60], 0xa146a3af
mov dword [esp + 0x64], 0xa552a747
mov dword [esp + 0x68], 0xa997ab43
mov dword [esp + 0x6c], 0xad48af88
mov dword [esp + 0x70], 0xb149b35d
mov dword [esp + 0x74], 0xb552b742
mov dword [esp + 0x78], 0xb94cbb53
mov dword [esp + 0x7c], 0xbd7dbf47
mov dword [esp + 0x80], 0x41a9435a
mov dword [esp + 0x84], 0x457d4778
mov dword [esp + 0x88], 0x49a14ba0
mov dword [esp + 0x8c], 0x4da14f73
mov dword [esp + 0x90], 0x51b653bc
mov dword [esp + 0x94], 0x55b357a1
mov dword [esp + 0x98], 0x59b15bbb
mov dword [esp + 0x9c], 0x5da85fae
mov dword [esp + 0xa0], 0x615563b7
mov dword [esp + 0xa4], 0x65686773
mov word [esp + 0xa8], 0x6b64
mov word [esp + 0xae], 0
mov dword [esp + 0xaa], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x87
ja 0x40ac13
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x28]
add ecx, 0x955be527
xor ecx, edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
add cl, 0x3d
mov edx, dword [esp]
mov byte [esp + edx + 0x28], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x88
jb 0x40abe0
mov dword [esp + 0xc], 0x1650735
mov dword [esp + 0x10], 0xd690370
mov word [esp + 0x14], 0xf0c
mov dword [esp + 0x16], 0
mov word [esp + 0x1a], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xf
ja 0x40ac83
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0xc]
add ecx, 0x3c222981
xor ecx, edx
mov dword [esp], ecx
mov ecx, dword [esp]
add cl, 0x7b
mov edx, dword [esp + 4]
mov byte [esp + edx + 0xc], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x10
jb 0x40ac50
push 0x493e0
push eax
push edi
push 0
push 0
push ebx
push ebp
call fcn.0040ca30
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00409550
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
mov eax, ebx
add esp, 0xd4
pop esi
pop edi
pop ebx
pop ebp
ret