Function at 0x40a310
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, 0xf0
cmp dword [ecx + 0x20], 0
je 0x40a35e
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xf], 0
test eax, eax
je 0x40a365
cmp al, 0x64
jb 0x40a374
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 + 0x439520]
mov word [esp + 0xd], ax
mov ecx, 0xfffffffd
mov eax, edx
jmp 0x40a37d
mov bl, 1
jmp 0x40a985
lea eax, [esp + 0xe]
mov dword [esp + 0x2c], eax
mov byte [esp + 0xe], 0x30
jmp 0x40a3c0
mov ecx, 0xffffffff
cmp al, 9
ja 0x40a395
lea edx, [esp + 0x10]
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
add edx, ecx
dec edx
mov dword [esp + 0x2c], edx
mov byte [esp + ecx + 0xf], al
jmp 0x40a3c0
mov ecx, eax
and ecx, 0x7d
mov edx, eax
and edx, 2
or eax, 2
imul eax, edx
xor edx, 2
imul edx, ecx
movzx eax, word [edx + eax + 0x439520]
lea ecx, [esp + 0xd]
mov dword [esp + 0x2c], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.00407040
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0xc0], eax
lea ebx, [esp + 0xcb]
push ebx
call fcn.0042f520
add esp, 4
mov dword [esp + 0xc4], edi
lea eax, [edi + 0x400]
push eax
call fcn.00409090
add esp, 4
mov edi, eax
mov dword [esp + 0x30], 0x6f737c6e
mov byte [esp + 0x34], 0x82
mov dword [esp + 0x35], 0
mov word [esp + 0x39], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x40a47e
nop
nop
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 + 0x30]
mov edx, 0x3e
sub edx, eax
add eax, 0x350e43c1
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0xb9
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xb
jb 0x40a440
lea eax, [esp + 0x30]
mov ecx, esi
push ebx
mov ebx, eax
push eax
push edi
call fcn.00409c50
mov dword [esp + 0x30], 0x83687276
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov word [esp + 0x3c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xd
ja 0x40a4fe
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x30]
mov edx, 0xbe
sub edx, eax
add eax, 0xaceaa441
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0x39
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xe
jb 0x40a4c0
mov ecx, esi
push dword [esp + 0x2c]
push ebx
push edi
call fcn.00409c50
mov eax, dword [str.WpM2Co__TRAX]
mov dword [esp + 0x30], 0x4b262438
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov word [esp + 0x3c], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xd
ja 0x40a580
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x30]
mov ebx, 0x35
sub ebx, ecx
add ecx, 0x5ff684ca
xor ebx, ecx
and ebx, edx
xor ebx, ecx
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
add cl, 0x7a
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xe
jb 0x40a540
mov ecx, esi
push eax
lea ebx, [esp + 0x34]
push ebx
push edi
call fcn.00409c50
mov dword [esp + 0x30], 0xdfd6dec3
mov dword [esp + 0x34], 0xcadbd2db
mov dword [esp + 0x38], 0x242922cb
mov byte [esp + 0x3c], 0xc2
mov word [esp + 0x3d], 0
mov byte [esp + 0x3f], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x40a60e
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x30]
mov edx, 0x88
sub edx, eax
add eax, 0xdfe0da77
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0xbf
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x10
jb 0x40a5d0
mov dword [esp + 0x10], 0x7bccdcc5
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov word [esp + 0x1c], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0xd
ja 0x40a67e
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x10]
mov edx, 0x70
sub edx, eax
add eax, 0xef2948f
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0x17
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0xe
jb 0x40a640
lea eax, [esp + 0x10]
mov ecx, esi
push ebx
push eax
push edi
call fcn.00409c50
mov dword [esp + 0x30], 0x5c545250
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 0x40a6fe
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x30]
mov edx, 0xd8
sub edx, eax
add eax, 0xbbec2e27
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0xef
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xc
jb 0x40a6c0
mov ecx, esi
push dword [esp + 0xc4]
push dword [esp + 0xc4]
push ebx
push edi
call fcn.00409ef0
mov eax, dword [esi + 0x60]
mov dword [esp + 0x30], 0xfb69f983
mov dword [esp + 0x34], 0xff68fd64
mov dword [esp + 0x38], 0xf36ef199
mov dword [esp + 0x3c], 0xf7abf566
mov dword [esp + 0x40], 0xeb63e982
mov dword [esp + 0x44], 0xef8bed7a
mov dword [esp + 0x48], 0xe3c0e1a4
mov dword [esp + 0x4c], 0xe773e57d
mov dword [esp + 0x50], 0x1b8c197a
mov dword [esp + 0x54], 0x1f8c1d81
mov dword [esp + 0x58], 0x1382117d
mov dword [esp + 0x5c], 0x17451586
mov dword [esp + 0x60], 0xb990970
mov dword [esp + 0x64], 0xf930d98
mov dword [esp + 0x68], 0x3640151
mov dword [esp + 0x6c], 0x7900561
mov dword [esp + 0x70], 0x3b753965
mov dword [esp + 0x74], 0x3f5e3d1a
mov dword [esp + 0x78], 0x33a731af
mov dword [esp + 0x7c], 0x375035ac
mov dword [esp + 0x80], 0x2bba2955
mov dword [esp + 0x84], 0x2f632da1
mov dword [esp + 0x88], 0x2347214c
mov dword [esp + 0x8c], 0x2773256a
mov dword [esp + 0x90], 0x5b3f5942
mov dword [esp + 0x94], 0x5fc75d0d
mov dword [esp + 0x98], 0x533451ce
mov dword [esp + 0x9c], 0x573155c3
mov dword [esp + 0xa0], 0x4b2f49cd
mov dword [esp + 0xa4], 0x4fde4dd8
mov dword [esp + 0xa8], 0x43134129
mov dword [esp + 0xac], 0x477e457d
mov word [esp + 0xb0], 0x7946
mov dword [esp + 0xb9], 0
mov dword [esp + 0xb6], 0
mov dword [esp + 0xb2], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x8c
ja 0x40a8c3
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x30]
mov ebx, 0xa0
sub ebx, ecx
add ecx, 0x2120f5f
xor ebx, ecx
and ebx, edx
xor ebx, ecx
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
add cl, 0x67
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x8d
jb 0x40a880
mov dword [esp + 0x10], 0x836b85b7
mov dword [esp + 0x14], 0x8f778172
mov word [esp + 0x18], 0x8d8e
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov dword [esp + 0x22], 0
mov byte [esp + 0x26], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 0x16
ja 0x40a950
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 8]
mov edx, dword [esp + 8]
movzx edx, byte [esp + edx + 0x10]
mov ebx, 0xbe
sub ebx, ecx
add ecx, 0x7de13a41
xor ebx, ecx
and ebx, edx
xor ebx, ecx
mov dword [esp + 4], ebx
mov ecx, dword [esp + 4]
add cl, 0x39
mov edx, dword [esp + 8]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 0x17
jb 0x40a910
push 0x493e0
push eax
push edi
push 0
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040c980
add esp, 0x1c
mov ebx, eax
push edi
call fcn.004090a0
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