Function at 0x40415c
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40952c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x6c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x2c], 0x56
mov byte [ebp - 0x2b], 0x49
mov byte [ebp - 0x2a], 0x44
mov byte [ebp - 0x29], 0x3a
mov byte [ebp - 0x28], 0x32
mov byte [ebp - 0x27], 0x30
mov byte [ebp - 0x26], 0x31
mov byte [ebp - 0x25], 0x34
mov byte [ebp - 0x24], 0x2d
mov byte [ebp - 0x23], 0x53
mov byte [ebp - 0x22], 0x56
mov byte [ebp - 0x21], 0x32
mov byte [ebp - 0x20], 0
mov al, byte [0x42b1ac]
mov byte [ebp - 0x30], al
mov cl, byte [0x42b1a8]
mov byte [ebp - 0x1c], cl
mov edx, dword [0x42b1b8]
mov eax, dword [edx*4 + 0x42b1b0]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0x42b1bc
cmp dword [0x42b09c], 0
jne 0x40437d
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404017
add esp, 4
push 0x42af98
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40421e
push 1
push 0x42af98
call fcn.00403f41
add esp, 8
jmp 0x4042a7
mov byte [ebp - 0x68], 0
mov ecx, 0xc
xor eax, eax
lea edi, [ebp - 0x67]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov byte [ebp - 0x74], 0x53
mov byte [ebp - 0x73], 0x53
mov byte [ebp - 0x72], 0x53
mov byte [ebp - 0x71], 0x53
mov byte [ebp - 0x70], 0x53
mov byte [ebp - 0x6f], 0x53
mov byte [ebp - 0x6e], 0
lea edx, [ebp - 0x74]
push edx
push 0x42af98
call fcn.00403e30
add esp, 8
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x4042a7
mov eax, dword [ebp - 0x6c]
add eax, 6
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x68]
push edx
mov ecx, dword [0x42aa54]
call fcn.004076e4
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x68]
push ecx
mov ecx, dword [0x42aa54]
call fcn.004077b4
test eax, eax
je 0x4042a7
push 1
push 0x42af98
call fcn.00403f41
add esp, 8
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push 0x42af98
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x42af88], eax
cmp dword [0x42af88], 0xffffffff
jne 0x4042d9
xor eax, eax
jmp 0x4043f9
push 0
mov edx, dword [0x42af88]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x42af90], eax
push 4
push 0x3000
mov eax, dword [0x42af90]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x42af94], eax
push 0
push 0x42af8c
mov ecx, dword [0x42af90]
push ecx
mov edx, dword [0x42af94]
push edx
mov eax, dword [0x42af88]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [0x42af88]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x400
mov edx, dword [0x42af90]
push edx
mov eax, dword [0x42af94]
push eax
call fcn.004040a0
add esp, 0xc
mov ecx, dword [0x42af94]
push ecx
call fcn.00406440
add esp, 4
mov dword [0x42af84], eax
cmp dword [0x42af84], 0
jne 0x404373
xor eax, eax
jmp 0x4043f9
mov dword [0x42b09c], 1
mov dword [ebp - 4], 0
mov edx, 1
test edx, edx
je 0x4043a2
mov dword [ebp - 0x7c], 0xb
push 0x40e8a8
lea eax, [ebp - 0x7c]
push eax
call sub.MSVCRT.dll__CxxThrowException
jmp 0x4043ef
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret