Function at 0x4035e0
Capabilities:
Get file size
Query or enumerate registry value
Read file on windows

Disassembly:
sub esp, 0x5c
mov eax, dword [0x422948]
xor eax, esp
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x60], eax
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, 5
mov dword [esp + 0xc], esi
mov dword [esi], ebx
jb 0x40383e
jne 0x403633
mov eax, dword [esi + 8]
sub eax, ebx
je 0x40383e
dec eax
je 0x403828
dec eax
jne 0x403633
cmp dword [esi + 0xc], 0xece
jb 0x40383e
cmp dword [esi + 0x10], ebx
jbe 0x40383e
push ebp
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0xc], ebp
je 0x403b58
cmp ebp, 0xffffffff
je 0x403b58
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x8000
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
jb 0x403b39
cmp edi, 0x200000
ja 0x403b39
lea ecx, [edi + 0x400]
push ecx
call fcn.004124ec
lea ecx, [edi + 2]
mov edx, ecx
mov ebp, eax
shr ecx, 2
xor eax, eax
add esp, 4
mov edi, ebp
rep stosd dword es:[edi], eax
push ebx
mov ecx, edx
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x18]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x403b11
mov ecx, dword [esp + 0x1c]
push ebx
lea eax, [esp + 0x1c]
push eax
push ecx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403b11
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0x18], edx
jne 0x403b11
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.004035b0
test eax, eax
je 0x40399e
cmp dword [esp + 0x1c], 0xa0000
jbe 0x40399e
mov al, 0x90
mov cl, 0x8b
mov byte [esp + 0x26], cl
mov byte [esp + 0x32], cl
mov byte [esp + 0x3a], cl
xor ecx, ecx
mov byte [esp + 0x1c], al
mov byte [esp + 0x1d], al
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], al
mov byte [esp + 0x20], al
mov byte [esp + 0x21], al
mov eax, dword [esi + 0xc]
cmp eax, 0x1770
setne cl
mov dl, 0x87
mov byte [esp + 0x25], dl
mov byte [esp + 0x31], dl
xor edx, edx
mov byte [esp + 0x24], 0xf
mov byte [esp + 0x27], bl
dec ecx
and ecx, 0xffff0000
add ecx, 0x4ff00
cmp eax, 0x1770
setne dl
mov esi, ecx
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], bl
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2d], 0x83
mov byte [esp + 0x2e], 0xfa
dec edx
and edx, 0xffff0000
add edx, 0x48000
mov eax, edx
cmp eax, esi
mov byte [esp + 0x2f], 0xa
mov byte [esp + 0x30], 0xf
mov byte [esp + 0x33], bl
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], 0x80
mov byte [esp + 0x37], 0x48
mov byte [esp + 0x38], 0x1c
mov byte [esp + 0x39], 0x20
mov byte [esp + 0x3b], 0x86
mov byte [esp + 0x3c], 0x28
mov byte [esp + 0x3d], 1
mov dword [esp + 0x10], esi
jae 0x403859
mov edx, dword [eax + ebp]
lea ecx, [esp + 0x2c]
cmp edx, dword [ecx]
jne 0x403802
mov ecx, 2
lea edi, [esp + 0x36]
lea esi, [eax + ebp + 0xa]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x403852
mov esi, dword [esp + 0x10]
inc eax
cmp eax, esi
jb 0x4037e0
push ebp
call fcn.004124f1
add esp, 4
pop edi
pop ebp
pop esi
mov eax, 0xffffff9b
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004053fe
add esp, 0x5c
ret
cmp dword [esi + 0xc], 0xa28
jb 0x40383e
cmp dword [esi + 0x10], 0x884
jae 0x403633
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004053fe
add esp, 0x5c
ret
add eax, 4
cmp eax, ebx
jne 0x40387a
push ebp
call fcn.004124f1
add esp, 4
pop edi
pop ebp
pop esi
mov eax, 0xffffff9b
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004053fe
add esp, 0x5c
ret
lea esi, [eax + ebp]
mov ecx, 3
lea edi, [esp + 0x24]
xor edx, edx
repe cmpsw word [esi], word es:[edi]
push ebp
jne 0x4038b4
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
call fcn.004124f1
add esp, 4
pop edi
pop ebp
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004053fe
add esp, 0x5c
ret
mov ecx, 3
lea edi, [esp + 0x20]
lea esi, [eax + ebp]
xor edx, edx
repe cmpsw word [esi], word es:[edi]
jne 0x40397e
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
call fcn.004124f1
add esp, 4
lea edx, [esp + 0x1c]
push edx
push 1
push ebx
push str.SYSTEMCurrentControlSetServicesTcpipParameters
mov esi, 4
push 0x80000002
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x403922
pop edi
pop ebp
pop esi
mov eax, 0xfffffff8
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004053fe
add esp, 0x5c
ret
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebx
push str.TcpNumConnections
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40396e
cmp dword [esp + 0x14], esi
jne 0x40396e
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004053fe
add esp, 0x5c
ret
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40389c
call fcn.004124f1
add esp, 4
pop edi
pop ebp
pop esi
mov eax, 0xffffff9c
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004053fe
add esp, 0x5c
ret
mov al, 0x63
mov byte [esp + 0x4a], al
mov byte [esp + 0x58], al
mov al, 0xcc
mov byte [esp + 0x5e], al
mov byte [esp + 0x5f], al
mov byte [esp + 0x60], al
mov byte [esp + 0x61], al
mov byte [esp + 0x62], al
mov byte [esp + 0x63], al
mov al, 0x90
mov byte [esp + 0x64], al
mov byte [esp + 0x65], al
mov byte [esp + 0x66], al
mov byte [esp + 0x67], al
mov eax, dword [esp + 0x1c]
sub eax, 0x400
mov dl, 0x5c
mov cl, 0x65
mov dword [esp + 0x1c], eax
mov byte [esp + 0x40], dl
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], 0x44
mov byte [esp + 0x43], bl
mov byte [esp + 0x44], cl
mov byte [esp + 0x45], bl
mov byte [esp + 0x46], 0x76
mov byte [esp + 0x47], bl
mov byte [esp + 0x48], 0x69
mov byte [esp + 0x49], bl
mov byte [esp + 0x4b], bl
mov byte [esp + 0x4c], cl
mov byte [esp + 0x4d], bl
mov byte [esp + 0x4e], dl
mov byte [esp + 0x4f], bl
mov byte [esp + 0x50], 0x52
mov byte [esp + 0x51], bl
mov byte [esp + 0x52], 0x61
mov byte [esp + 0x53], bl
mov byte [esp + 0x54], 0x73
mov byte [esp + 0x55], bl
mov byte [esp + 0x56], 0x41
mov byte [esp + 0x57], bl
mov byte [esp + 0x59], bl
mov byte [esp + 0x5a], 0x64
mov byte [esp + 0x5b], bl
mov byte [esp + 0x5c], bl
mov byte [esp + 0x5d], bl
mov eax, ebx
je 0x403a8a
mov cl, byte [eax + ebp]
cmp cl, 0x5c
lea esi, [eax + ebp]
jne 0x403a81
cmp byte [eax + ebp + 1], bl
jne 0x403a81
mov ecx, 0xa
lea edi, [esp + 0x40]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x403aab
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
jb 0x403a61
push ebp
call fcn.004124f1
add esp, 4
pop edi
pop ebp
pop esi
mov eax, 0xfffffffb
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004053fe
add esp, 0x5c
ret
cmp eax, ebx
je 0x403a8a
cmp eax, dword [esp + 0x1c]
jae 0x403a8a
mov cl, byte [eax + ebp + 0x7f]
add eax, 0x80
cmp cl, bl
jne 0x403af0
cmp byte [eax + ebp + 4], 0xb8
jne 0x403af0
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
mov esi, dword [eax + ebp]
push ebp
call fcn.004124f1
add esp, 4
pop edi
pop ebp
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004053fe
add esp, 0x5c
ret
push ebp
call fcn.004124f1
add esp, 4
pop edi
pop ebp
pop esi
mov eax, 0xfffffffa
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004053fe
add esp, 0x5c
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.004124f1
add esp, 4
pop edi
pop ebp
pop esi
mov eax, 0xfffffffc
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004053fe
add esp, 0x5c
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
pop esi
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004053fe
add esp, 0x5c
ret
mov ecx, dword [esp + 0x64]
pop ebp
pop esi
pop ebx
xor ecx, esp
mov eax, 0xfffffffe
call fcn.004053fe
add esp, 0x5c
ret