Function at 0x40d980
Capabilities:
Contain obfuscated stackstrings
Encode data using base64
Get number of processors
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x44f6dd
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x4655f0]
xor eax, esp
mov dword [esp + 0x164], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4655f0]
xor eax, esp
push eax
lea eax, [esp + 0x17c]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x184], esi
mov ebx, ecx
push 0x456f6e
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], esi
call fcn.004017a0
mov dword [esp + 0x184], esi
mov edi, 1
mov dword [esp + 0x30], edi
call fcn.00418933
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40da02
push 0x80004005
call fcn.00401640
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x184], edi
mov ecx, dword [esp + 0x18c]
mov ecx, dword [ecx]
mov ebp, dword [ecx - 0xc]
xor eax, eax
cmp ebp, esi
mov byte [esp + 0x34], 0x41
mov byte [esp + 0x35], 0x42
mov byte [esp + 0x36], 0x43
mov byte [esp + 0x37], 0x44
mov byte [esp + 0x38], 0x45
mov byte [esp + 0x39], 0x46
mov byte [esp + 0x3a], 0x47
mov byte [esp + 0x3b], 0x48
mov byte [esp + 0x3c], 0x49
mov byte [esp + 0x3d], 0x4a
mov byte [esp + 0x3e], 0x4b
mov byte [esp + 0x3f], 0x4c
mov byte [esp + 0x40], 0x4d
mov byte [esp + 0x41], 0x4e
mov byte [esp + 0x42], 0x4f
mov byte [esp + 0x43], 0x50
mov byte [esp + 0x44], 0x51
mov byte [esp + 0x45], 0x52
mov byte [esp + 0x46], 0x53
mov byte [esp + 0x47], 0x54
mov byte [esp + 0x48], 0x55
mov byte [esp + 0x49], 0x56
mov byte [esp + 0x4a], 0x57
mov byte [esp + 0x4b], 0x58
mov byte [esp + 0x4c], 0x59
mov byte [esp + 0x4d], 0x5a
mov byte [esp + 0x4e], 0x61
mov byte [esp + 0x4f], 0x62
mov byte [esp + 0x50], 0x63
mov byte [esp + 0x51], 0x64
mov byte [esp + 0x52], 0x65
mov byte [esp + 0x53], 0x66
mov byte [esp + 0x54], 0x67
mov byte [esp + 0x55], 0x68
mov byte [esp + 0x56], 0x69
mov byte [esp + 0x57], 0x6a
mov byte [esp + 0x58], 0x6b
mov byte [esp + 0x59], 0x6c
mov byte [esp + 0x5a], 0x6d
mov byte [esp + 0x5b], 0x6e
mov byte [esp + 0x5c], 0x6f
mov byte [esp + 0x5d], 0x70
mov byte [esp + 0x5e], 0x71
mov byte [esp + 0x5f], 0x72
mov byte [esp + 0x60], 0x73
mov byte [esp + 0x61], 0x74
mov byte [esp + 0x62], 0x75
mov byte [esp + 0x63], 0x76
mov byte [esp + 0x64], 0x77
mov byte [esp + 0x65], 0x78
mov byte [esp + 0x66], 0x79
mov byte [esp + 0x67], 0x7a
mov byte [esp + 0x68], 0x30
mov byte [esp + 0x69], 0x31
mov byte [esp + 0x6a], 0x32
mov byte [esp + 0x6b], 0x33
mov byte [esp + 0x6c], 0x34
mov byte [esp + 0x6d], 0x35
mov byte [esp + 0x6e], 0x36
mov byte [esp + 0x6f], 0x37
mov byte [esp + 0x70], 0x38
mov byte [esp + 0x71], 0x39
mov byte [esp + 0x72], 0x2b
mov byte [esp + 0x73], 0x2f
mov byte [esp + 0x74], 0x3d
mov dword [esp + 0x28], ebp
jle 0x40db89
cmp eax, esi
jl 0x40dbae
cmp eax, ebp
jg 0x40dbae
mov dl, byte [ecx + eax]
mov byte [esp + eax + 0x78], dl
add eax, edi
cmp eax, ebp
jl 0x40db74
xor ecx, ecx
cmp ebp, esi
mov dword [esp + 0x24], ecx
jle 0x40dcec
mov eax, 2
lea edx, [esp + 0x79]
mov ebx, edi
sub eax, edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], eax
jmp 0x40dbd0
push 0x80070057
call fcn.00401640
jmp 0x40dbc0
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
cmp ebx, ebp
jl 0x40dbd9
mov byte [esp + ecx + 0x79], 0x30
lea ecx, [esp + ecx + 0x79]
add eax, ecx
cmp eax, ebp
mov dword [esp + 0x18], eax
jl 0x40dbeb
mov byte [ecx + 1], 0x30
movzx edx, byte [ecx]
movzx eax, byte [ecx + 1]
mov esi, edx
and esi, 0xf
add esi, esi
mov edi, eax
add esi, esi
shr eax, 6
or eax, esi
movzx esi, byte [ecx - 1]
mov ecx, esi
and ecx, 3
shl ecx, 4
shr edx, 4
and edi, 0x3f
or ecx, edx
shr esi, 2
cmp ebx, ebp
jl 0x40dc24
mov eax, 0x40
mov edi, eax
cmp dword [esp + 0x18], ebp
jl 0x40dc2f
mov edi, 0x40
movsx edx, byte [esp + edi + 0x34]
movsx eax, byte [esp + eax + 0x34]
movsx ecx, byte [esp + ecx + 0x34]
push edx
movsx edx, byte [esp + esi + 0x38]
push eax
push ecx
push edx
lea eax, [esp + 0x2c]
push str._c_c_c_c
push eax
call fcn.00401d60
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov edi, dword [esp + 0x34]
mov ebx, dword [eax - 0xc]
mov ebp, dword [edi - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov dword [esp + 0x30], edi
sub edi, eax
mov eax, dword [eax - 8]
lea esi, [ebx + ebp]
sub eax, esi
add esp, 0x18
or eax, ecx
jge 0x40dc8d
mov ecx, dword [esp + 0x14]
push esi
call fcn.00401690
cmp edi, ebx
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
ja 0x40dc9e
lea ecx, [eax + edi]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x18]
push ebp
push edx
add eax, ebx
push ebp
push eax
call fcn.004367da
add esp, 0x10
test esi, esi
jl 0x40dbae
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
cmp esi, dword [eax - 8]
jg 0x40dbae
add dword [esp + 0x20], 3
mov dword [eax - 0xc], esi
mov eax, dword [ecx]
mov byte [esi + eax], 0
mov eax, dword [esp + 0x24]
add eax, 3
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x24], eax
jl 0x40dbc0
mov ebx, ecx
mov byte [esp + 0x184], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x17c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.00437030
add esp, 0x174
ret 4