Function at 0x40a760
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, 0xac
cmp dword [ecx + 0x20], 0
je 0x40a7a9
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xb], 0
test eax, eax
je 0x40a7b0
cmp al, 0x64
jb 0x40a7bb
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 + 0x438318]
mov word [esp + 9], ax
mov ecx, 0xfffffffd
mov eax, edx
jmp 0x40a7c4
mov bl, 1
jmp 0x40acf0
lea ebp, [esp + 0xa]
mov byte [esp + 0xa], 0x30
jmp 0x40a800
mov ecx, 0xffffffff
cmp al, 9
ja 0x40a7d9
lea edx, [esp + 0xc]
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea ebp, [edx + ecx]
dec ebp
mov byte [esp + ecx + 0xb], al
jmp 0x40a800
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 + 0x438318]
lea ebp, [esp + 9]
mov word [esp + 9], ax
lea eax, [esi + 0x10]
push eax
call fcn.00407390
add esp, 4
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
lea eax, [ecx + 0x400]
push eax
call fcn.004095a0
add esp, 4
mov edi, eax
mov dword [esp + 0x24], 0x9d9dae9c
mov byte [esp + 0x28], 0x20
mov dword [esp + 0x29], 0
mov word [esp + 0x2d], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xa
ja 0x40a88e
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x24]
add eax, 0xbd2c10c9
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x13
mov ecx, dword [esp]
mov byte [esp + ecx + 0x24], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xb
jb 0x40a860
lea eax, [esp + 0x24]
mov ecx, esi
push 0x43fb74
mov ebx, eax
push eax
push edi
call fcn.0040a120
mov dword [esp + 0x24], 0x1fbab0a8
mov dword [esp + 0x28], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x40a8fe
nop
nop
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 + 0x24]
add eax, 0xda2e2eba
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x5e
mov ecx, dword [esp]
mov byte [esp + ecx + 0x24], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x40a8d0
mov ecx, esi
push ebp
push ebx
push edi
call fcn.0040a120
mov eax, dword [str.K8DY38__advert]
mov dword [esp], 0x13aea8a4
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0xc]
cmp ecx, 3
ja 0x40a963
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
movzx edx, byte [esp + edx]
add ecx, 0x6196a83c
xor ecx, edx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x24]
add cl, 0xd4
mov edx, dword [esp + 0xc]
mov byte [esp + edx], cl
inc dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
cmp ecx, 4
jb 0x40a930
mov edx, esp
mov ecx, esi
push eax
push edx
push edi
call fcn.0040a120
mov dword [esp + 0x24], 0xdfc4dcc3
mov dword [esp + 0x28], 0xccd3c8db
mov dword [esp + 0x2c], 0xd6d5d8cb
mov byte [esp + 0x30], 0x44
mov dword [esp + 0x31], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x10
ja 0x40a9f7
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 + 0x24]
lea edx, [eax + 0x94]
add eax, ecx
and edx, ecx
add edx, edx
sub eax, edx
add eax, 0x33eb6e94
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov ecx, eax
not ecx
and ecx, 0xe4
and eax, 0x1b
sub eax, ecx
mov ecx, dword [esp]
mov byte [esp + ecx + 0x24], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x11
jb 0x40a9b0
mov dword [esp + 0xc], 0xcf5a6e69
mov word [esp + 0x10], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x40aa51
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, 0x16d7232
xor eax, ecx
mov dword [esp], eax
mov eax, dword [esp]
add al, 6
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0xc], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 6
jb 0x40aa20
lea ebp, [esp + 0xc]
mov ecx, esi
push ebx
push ebp
push edi
call fcn.0040a120
mov dword [esp + 0x24], 0x467e7846
mov byte [esp + 0x28], 0xe4
mov dword [esp + 0x29], 0
mov word [esp + 0x2d], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xa
ja 0x40aabe
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x24]
add eax, 0x2dfa3dd8
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0xc8
mov ecx, dword [esp]
mov byte [esp + ecx + 0x24], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xb
jb 0x40aa90
mov ecx, esi
push dword [esp + 0x20]
push dword [esp + 0x20]
push ebx
push edi
call fcn.0040a3a0
mov eax, dword [esi + 0x60]
mov dword [esp + 0x24], 0xe91beb21
mov dword [esp + 0x28], 0xed1aef1a
mov dword [esp + 0x2c], 0xf100f307
mov dword [esp + 0x30], 0xf5c5f704
mov dword [esp + 0x34], 0xf905fb20
mov dword [esp + 0x38], 0xfd15ff08
mov dword [esp + 0x3c], 0x81a283c2
mov dword [esp + 0x40], 0x857d8773
mov dword [esp + 0x44], 0x897e8b68
mov dword [esp + 0x48], 0x8d7e8f67
mov dword [esp + 0x4c], 0x9164936b
mov dword [esp + 0x50], 0x95a79764
mov dword [esp + 0x54], 0x996b9b7e
mov dword [esp + 0x58], 0x9d6d9f6e
mov dword [esp + 0x5c], 0xa146a3af
mov dword [esp + 0x60], 0xa552a747
mov dword [esp + 0x64], 0xa997ab43
mov dword [esp + 0x68], 0xad48af88
mov dword [esp + 0x6c], 0xb149b35d
mov dword [esp + 0x70], 0xb552b742
mov dword [esp + 0x74], 0xb94cbb53
mov dword [esp + 0x78], 0xbd7dbf47
mov dword [esp + 0x7c], 0x41a9435a
mov dword [esp + 0x80], 0x457d4778
mov dword [esp + 0x84], 0x49a14ba0
mov dword [esp + 0x88], 0x4da14f73
mov dword [esp + 0x8c], 0x51b653bc
mov dword [esp + 0x90], 0x55b357a1
mov dword [esp + 0x94], 0x59b15bbb
mov dword [esp + 0x98], 0x5da85fae
mov dword [esp + 0x9c], 0x615563b7
mov dword [esp + 0xa0], 0x65686773
mov word [esp + 0xa4], 0x6b64
mov word [esp + 0xaa], 0
mov dword [esp + 0xa6], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x87
ja 0x40ac53
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x24]
add ecx, 0x72b19527
xor ecx, edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
add cl, 0x3d
mov edx, dword [esp]
mov byte [esp + edx + 0x24], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x88
jb 0x40ac20
mov dword [esp + 0xc], 0xf1ad0fdd
mov dword [esp + 0x10], 0xf559f360
mov word [esp + 0x14], 0xf7f4
mov dword [esp + 0x16], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xd
ja 0x40acc3
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 + 0xc]
add ecx, 0x47fa01fd
xor ecx, edx
mov dword [esp], ecx
mov ecx, dword [esp]
add cl, 0xf
mov edx, dword [esp + 4]
mov byte [esp + edx + 0xc], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xe
jb 0x40ac90
push 0x493e0
push eax
push edi
push 0
push 0
push ebx
push ebp
call fcn.0040c9f0
add esp, 0x1c
mov ebx, eax
push edi
call fcn.004095b0
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
mov eax, ebx
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret