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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1b8
mov eax, dword [ebp + 8]
mov byte [esp + 0x23], 0
mov al, byte [esp + 0x60]
mov byte [esp + 0x64], al
mov byte [esp + 0x140], 0x85
mov byte [esp + 0x141], 0xbc
mov byte [esp + 0x142], 0xac
mov byte [esp + 0x143], 0xe4
mov byte [esp + 0x144], 0xb6
mov byte [esp + 0x145], 0x86
mov byte [esp + 0x146], 0x82
mov byte [esp + 0x147], 0x80
mov byte [esp + 0x148], 0x1e
mov dword [esp + 0x151], 0
mov dword [esp + 0x14d], 0
mov dword [esp + 0x149], 0
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x24]
cmp eax, 0x15
jae 0x40aa0d
jmp 0x40a9bb
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
movzx ecx, byte [esp + ecx + 0x140]
mov edx, eax
add edx, 0x794505db
add eax, 0xdb
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x178], edx
mov eax, dword [esp + 0x178]
add al, 3
mov ecx, dword [esp + 0x24]
mov byte [esp + ecx + 0x140], al
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
cmp eax, 0x15
jb 0x40a9bb
jmp 0x40aa0d
lea eax, [esp + 0x197]
lea edx, [esp + 0x140]
mov edi, eax
mov ecx, 2
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
add eax, 8
lea edx, [esp + 0x140]
add edx, 8
mov edi, eax
xor ecx, ecx
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov al, byte [esp + 0x148]
mov byte [esp + 0x19f], al
lea esi, [esp + 0x197]
mov al, byte [esp + 0x5c]
mov byte [esp + 0x68], al
mov byte [esp + 0x80], 0x73
mov byte [esp + 0x81], 0xb1
mov byte [esp + 0x82], 0x2d
mov byte [esp + 0x83], 0xb3
mov byte [esp + 0x84], 0x2a
mov byte [esp + 0x85], 0xb5
mov byte [esp + 0x86], 0x22
mov byte [esp + 0x87], 0xb7
mov byte [esp + 0x88], 0xd
mov byte [esp + 0x89], 0xa9
mov byte [esp + 0x8a], 0x34
mov byte [esp + 0x8b], 0xab
mov byte [esp + 0x8c], 0x38
mov byte [esp + 0x8d], 0xad
mov byte [esp + 0x8e], 0x73
mov byte [esp + 0x8f], 0xaf
mov byte [esp + 0x90], 0x14
mov byte [esp + 0x91], 0xa1
mov byte [esp + 0x92], 0x2b
mov byte [esp + 0x93], 0xa3
mov byte [esp + 0x94], 0x34
mov byte [esp + 0x95], 0xa5
mov byte [esp + 0x96], 3
mov byte [esp + 0x97], 0xa7
mov byte [esp + 0x98], 0x52
mov byte [esp + 0x99], 0x99
mov byte [esp + 0x9a], 0x7a
mov byte [esp + 0x9b], 0x9b
mov byte [esp + 0x9c], 0x3d
mov byte [esp + 0x9d], 0x9d
mov byte [esp + 0x9e], 0xe
mov byte [esp + 0x9f], 0x9f
mov byte [esp + 0xa0], 0
mov byte [esp + 0xa1], 0x91
mov byte [esp + 0xa2], 0xe
mov byte [esp + 0xa3], 0x93
mov byte [esp + 0xa4], 0xd
mov byte [esp + 0xa5], 0x95
mov byte [esp + 0xa6], 0x35
mov byte [esp + 0xa7], 0x97
mov byte [esp + 0xa8], 0x29
mov byte [esp + 0xa9], 0x89
mov byte [esp + 0xaa], 0x1e
mov byte [esp + 0xab], 0x8b
mov byte [esp + 0xac], 0x15
mov byte [esp + 0xad], 0x8d
mov byte [esp + 0xae], 0x11
mov byte [esp + 0xaf], 0x8f
mov byte [esp + 0xb0], 0x1e
mov byte [esp + 0xb1], 0x81
mov byte [esp + 0xb2], 0x5d
mov byte [esp + 0xb3], 0x83
mov byte [esp + 0xb4], 0xc
mov byte [esp + 0xb5], 0x85
mov byte [esp + 0xb6], 0x5b
mov byte [esp + 0xb7], 0x87
mov byte [esp + 0xb8], 0xef
mov byte [esp + 0xb9], 0x79
mov byte [esp + 0xba], 0xed
mov byte [esp + 0xbb], 0x7b
mov byte [esp + 0xbc], 0xeb
mov byte [esp + 0xbd], 0x7d
mov byte [esp + 0xbe], 0xa3
mov byte [esp + 0xbf], 0x7f
mov byte [esp + 0xc0], 0xd6
mov byte [esp + 0xc1], 0x71
mov byte [esp + 0xc2], 0xed
mov byte [esp + 0xc3], 0x73
mov byte [esp + 0xc4], 0xe6
mov byte [esp + 0xc5], 0x75
mov byte [esp + 0xc6], 0xeb
mov byte [esp + 0xc7], 0x77
mov byte [esp + 0xc8], 0xb5
mov byte [esp + 0xc9], 0x69
mov byte [esp + 0xca], 0xff
mov byte [esp + 0xcb], 0x6b
mov byte [esp + 0xcc], 0xfe
mov byte [esp + 0xcd], 0x6d
mov byte [esp + 0xce], 0xf2
mov byte [esp + 0xcf], 0x6f
mov byte [esp + 0xd0], 0xc5
mov byte [esp + 0xd1], 0x61
mov byte [esp + 0xd2], 0xfc
mov byte [esp + 0xd3], 0x63
mov byte [esp + 0xd4], 0xc7
mov byte [esp + 0xd5], 0x65
mov byte [esp + 0xd6], 0xf9
mov byte [esp + 0xd7], 0x67
mov byte [esp + 0xd8], 0xfc
mov byte [esp + 0xd9], 0x59
mov byte [esp + 0xda], 0xff
mov byte [esp + 0xdb], 0x5b
mov byte [esp + 0xdc], 0xf8
mov byte [esp + 0xdd], 0x5d
mov byte [esp + 0xde], 0xa3
mov byte [esp + 0xdf], 0x5f
mov byte [esp + 0xe0], 0xaa
mov byte [esp + 0xe1], 0x51
mov byte [esp + 0xe2], 0x52
mov byte [esp + 0xe3], 0x53
lea eax, [esp + 0x80]
add eax, 0x64
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 9
call fcn.00408ce0
jmp 0x40ada3
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x28]
cmp eax, 0x6d
jae 0x40ae0a
jmp 0x40adb6
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
movzx ecx, byte [esp + ecx + 0x80]
mov edx, eax
add edx, 0x307148
lea eax, [eax + ecx + 0x307148]
and edx, ecx
add edx, edx
sub eax, edx
mov dword [esp + 0x17c], eax
mov eax, dword [esp + 0x17c]
add al, 8
mov ecx, dword [esp + 0x28]
mov byte [esp + ecx + 0x80], al
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
cmp eax, 0x6d
jb 0x40adb6
jmp 0x40ae0a
mov al, byte [esp + 0x58]
mov byte [esp + 0x6c], al
mov byte [esp + 0x128], 0xf
mov byte [esp + 0x129], 0x61
mov byte [esp + 0x12a], 0xc3
mov byte [esp + 0x12b], 0x63
mov byte [esp + 0x12c], 0xf4
mov byte [esp + 0x12d], 0x65
mov byte [esp + 0x12e], 0xcf
mov byte [esp + 0x12f], 0x67
mov byte [esp + 0x130], 0x68
mov byte [esp + 0x131], 0x69
mov word [esp + 0x13e], 0
mov dword [esp + 0x13a], 0
mov dword [esp + 0x136], 0
mov dword [esp + 0x132], 0
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x2c]
cmp eax, 0x18
jae 0x40aef1
jmp 0x40aea0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
movzx ecx, byte [esp + ecx + 0x128]
mov edx, eax
add edx, 0x50
and edx, ecx
add eax, ecx
add edx, edx
sub eax, edx
add eax, 0x4a6f9b50
mov dword [esp + 0x180], eax
mov eax, dword [esp + 0x180]
add al, 0xd0
mov ecx, dword [esp + 0x2c]
mov byte [esp + ecx + 0x128], al
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
cmp eax, 0x18
jb 0x40aea0
jmp 0x40aef1
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x128]
lea edx, [esp + 0x80]
lea edi, [esp + 0x44]
xor ebx, ebx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0
call fcn.0040b430
test al, 1
jne 0x40af39
jmp 0x40b3dc
mov al, byte [esp + 0x54]
mov byte [esp + 0x70], al
mov byte [esp + 0x158], 0xf
mov byte [esp + 0x159], 0xa
mov byte [esp + 0x15a], 0xb2
mov byte [esp + 0x163], 0
mov dword [esp + 0x15f], 0
mov dword [esp + 0x15b], 0
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x30]
cmp eax, 0xc
jae 0x40afde
jmp 0x40af8a
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
movzx ecx, byte [esp + ecx + 0x158]
mov edx, eax
add edx, 0x8e442498
lea eax, [eax + ecx - 0x71bbdb68]
and edx, ecx
add edx, edx
sub eax, edx
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x184]
add al, 0xd8
mov ecx, dword [esp + 0x30]
mov byte [esp + ecx + 0x158], al
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
cmp eax, 0xc
jb 0x40af8a
jmp 0x40afde
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x158]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040cf50
cmp eax, 0
sete al
test al, 1
jne 0x40b001
jmp 0x40b00b
mov byte [esp + 0x23], 1
jmp 0x40b3d0
mov al, byte [esp + 0x50]
mov byte [esp + 0x74], al
mov byte [esp + 0x110], 0x53
mov byte [esp + 0x111], 0x4e
mov byte [esp + 0x112], 0x41
mov byte [esp + 0x113], 0x5f
mov byte [esp + 0x114], 0x45
mov byte [esp + 0x115], 0x58
mov byte [esp + 0x116], 0x5a
mov byte [esp + 0x117], 0xaf
mov byte [esp + 0x118], 0
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x34]
cmp eax, 9
jae 0x40b0c2
jmp 0x40b06e
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
movzx ecx, byte [esp + ecx + 0x110]
mov edx, eax
add edx, 0x3a864565
and edx, ecx
lea eax, [eax + ecx + 0x3a864565]
add edx, edx
sub eax, edx
mov dword [esp + 0x188], eax
mov eax, dword [esp + 0x188]
add al, 0x3d
mov ecx, dword [esp + 0x34]
mov byte [esp + ecx + 0x110], al
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
cmp eax, 9
jb 0x40b06e
jmp 0x40b0c2
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x110]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040cf80
cmp eax, 0
setne al
test al, 1
jne 0x40b0e8
jmp 0x40b3ce
mov al, byte [esp + 0x4c]
mov byte [esp + 0x78], al
mov byte [esp + 0xf0], 0x9e
mov byte [esp + 0xf1], 0x8c
mov byte [esp + 0xf2], 0x9f
mov byte [esp + 0xf3], 0x96
mov byte [esp + 0xf4], 0x4d
mov byte [esp + 0xf5], 0x57
mov byte [esp + 0xf6], 0x97
mov byte [esp + 0xf7], 0x83
mov byte [esp + 0xf8], 0x87
mov byte [esp + 0xf9], 0x9a
mov byte [esp + 0xfa], 0x5c
mov byte [esp + 0xfb], 0x5b
mov byte [esp + 0xfc], 0x82
mov byte [esp + 0xfd], 0x98
mov byte [esp + 0xfe], 0x92
mov byte [esp + 0xff], 0x8a
mov byte [esp + 0x100], 0x99
mov byte [esp + 0x101], 0x40
mov byte [esp + 0x102], 0x24
mov byte [esp + 0x103], 3
mov dword [esp + 0x108], 0
mov dword [esp + 0x104], 0
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x38]
cmp eax, 0x1c
jae 0x40b1ff
jmp 0x40b1b9
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
movzx ecx, byte [esp + ecx + 0xf0]
add eax, 0x95fd492e
xor eax, ecx
mov dword [esp + 0x18c], eax
mov eax, dword [esp + 0x18c]
add al, 0xbe
mov ecx, dword [esp + 0x38]
mov byte [esp + ecx + 0xf0], al
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
cmp eax, 0x1c
jb 0x40b1b9
jmp 0x40b1ff
lea eax, [esp + 0x1a0]
lea edx, [esp + 0xf0]
mov ecx, 5
mov edi, eax
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
add eax, 0x14
lea edx, [esp + 0xf0]
add edx, 0x14
mov edi, eax
xor ecx, ecx
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
lea eax, [esp + 0x1a0]
mov ecx, dword [esp + 0x44]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040cf80
mov dword [esp + 0x40], eax
cmp dword [esp + 0x40], 0
je 0x40b3c8
mov eax, dword [esp + 0x40]
add eax, 0x13
mov dword [esp + 0x40], eax
mov al, byte [esp + 0x48]
mov byte [esp + 0x7c], al
mov byte [esp + 0x168], 0xfa
mov byte [esp + 0x169], 0x9f
mov byte [esp + 0x16a], 0xda
mov word [esp + 0x16f], 0
mov dword [esp + 0x16b], 0
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x3c]
cmp eax, 9
jae 0x40b2fb
jmp 0x40b2ab
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
movzx ecx, byte [esp + ecx + 0x168]
mov edx, eax
add edx, 0x1bf5325c
add eax, 0x5c
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x190], edx
mov eax, dword [esp + 0x190]
add al, 0x7c
mov ecx, dword [esp + 0x3c]
mov byte [esp + ecx + 0x168], al
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
cmp eax, 9
jb 0x40b2ab
jmp 0x40b2fb
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x168]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040cf80
mov dword [esp + 0x120], eax
cmp dword [esp + 0x120], 0
je 0x40b3c6
mov byte [0x446268], 1
mov edi, dword [esp + 0x120]
mov esi, dword [esp + 0x40]
cmp edi, 0
jne 0x40b354
mov ecx, esi
jmp 0x40b342
mov eax, ecx
mov dl, byte [eax]
add ecx, 1
cmp dl, 0
jne 0x40b342
sub eax, esi
mov edi, esi
add edi, eax
mov dword [esp + 0x124], 0
lea ecx, [0x44626a]
cmp edi, esi
jbe 0x40b3bc
lea ebx, [0x44626a]
jmp 0x40b371
cmp byte [esi], 0
jne 0x40b37a
mov ecx, ebx
jmp 0x40b3bc
lea eax, [esp + 0x124]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.0040f970
mov dx, word [esp + 0x124]
mov ecx, ebx
add ecx, 2
add esi, eax
mov word [ebx], dx
mov eax, ecx
sub eax, 0x446468
setb al
mov edx, esi
sub edx, edi
setb dl
and al, dl
test al, 1
mov ebx, ecx
jne 0x40b371
mov word [ecx], 0
mov byte [esp + 0x23], 1
jmp 0x40b3c8
jmp 0x40b3ca
jmp 0x40b3cc
jmp 0x40b3ce
jmp 0x40b3d0
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.00433f90
mov al, byte [esp + 0x23]
and al, 1
movzx eax, al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret