Function at 0x45141a
Capabilities:
Get disk information
Get disk size
Get hostname
Get keyboard layout
Initialize winsock library
Resolve dns

Disassembly:
call 0x53174733
push eax
lea eax, [ebp - 0x60c]
call fcn.004079b4
push dword [ebp - 0x60c]
push 0x452cec
push 0x452118
push 0x452d80
mov eax, dword [ebp - 0x59c]
shr eax, 0x14
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x610]
call fcn.004079b4
push dword [ebp - 0x610]
push 0x452cec
push 0x452118
push 0x452118
push 0x452d98
push dword [0x467058]
push 0x452118
push dword [ebp - 0x10]
mov eax, edi
mov edx, 0x28
call fcn.004048e4
mov eax, esi
mov edx, 0x452da8
call fcn.004045b8
lea eax, [ebp - 0x274]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, esi
mov edx, 0x452e1c
call fcn.004045b8
push 0xff
lea eax, [ebp - 0x577]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x577]
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
mov eax, esi
mov edx, 0x452e88
call fcn.004045b8
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 4]
call fcn.0040475c
push dword [edi]
push 0x452f0c
push dword [ebp - 4]
mov eax, edi
mov edx, 3
call fcn.004048e4
mov eax, esi
mov edx, 0x452628
call fcn.004045b8
push dword [ebp - 0x14]
push 0x452f20
push dword [ebp - 4]
push 0x4523dc
push 0x452f2c
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004048e4
call sub.wsock32.dll_WSACleanup
mov eax, esi
mov edx, 0x452f3c
call fcn.004045b8
push dword [edi]
push 0x452118
push 0x452118
push 0x452fa0
push 0x452118
mov eax, edi
mov edx, 5
call fcn.004048e4
mov eax, esi
mov edx, 0x452fb8
call fcn.004045b8
mov bl, 0x42
mov eax, esi
mov edx, 0x453090
call fcn.004045b8
lea eax, [ebp - 0x614]
mov edx, ebx
call fcn.0040474c
mov edx, dword [ebp - 0x614]
lea eax, [ebp - 0x1c]
mov ecx, 0x4530b0
call fcn.00404870
mov eax, dword [ebp - 0x1c]
call fcn.00404a24
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.0x4515be.0
jmp dword [eax*4 + 0x4515c5]
mov eax, esi
mov edx, 0x4530bc
call fcn.004045b8
lea eax, [ebp - 4]
mov edx, 0x4530d4
call fcn.004045fc
lea eax, [ebp - 8]
mov edx, 0x4530e8
call fcn.004045fc
jmp 0x4516fd
mov eax, esi
mov edx, 0x4530f4
call fcn.004045b8
lea eax, [ebp - 4]
mov edx, 0x453184
call fcn.004045fc
lea eax, [ebp - 8]
mov edx, 0x453194
call fcn.004045fc
mov eax, esi
mov edx, 0x4531a0
call fcn.004045b8
jmp 0x4516fd
mov eax, esi
mov edx, 0x4531c8
call fcn.004045b8
lea eax, [ebp - 4]
mov edx, 0x4531fc
call fcn.004045fc
lea eax, [ebp - 8]
mov edx, 0x45320c
call fcn.004045fc
mov eax, esi
mov edx, 0x45321c
call fcn.004045b8
jmp 0x4516fd
lea eax, [ebp - 4]
mov edx, 0x453284
call fcn.004045fc
lea eax, [ebp - 8]
mov edx, 0x453294
call fcn.004045fc
push dword [edi]
push 0x452118
push 0x4528e4
push dword [ebp - 0x1c]
push dword [ebp - 4]
push 0x452118
mov eax, edi
mov edx, 6
call fcn.004048e4
lea eax, [ebp - 4]
call fcn.00404564
jmp 0x4516fd
lea eax, [ebp - 4]
mov edx, 0x4532a0
call fcn.004045fc
mov eax, esi
mov edx, 0x452e88
call fcn.004045b8
lea eax, [ebp - 8]
mov edx, 0x4532b0
call fcn.004045fc
mov eax, esi
mov edx, 0x4532c4
call fcn.004045b8
jmp 0x4516fd
lea eax, [ebp - 4]
call fcn.00404564
mov eax, esi
mov edx, 0x453390
call fcn.004045b8
mov eax, dword [ebp - 4]
call fcn.00404824
dec eax
jl 0x451940
mov eax, esi
mov edx, 0x4533bc
call fcn.004045b8
push dword [ebp - 0x14]
lea eax, [ebp - 0x618]
mov edx, ebx
call fcn.0040474c
push dword [ebp - 0x618]
push 0x45343c
push dword [ebp - 8]
lea eax, [ebp - 0x14]
mov edx, 4
add al, ch
xchg ebp, eax
xor ebx, edi
invalid
push dword [edi]
push 0x4528e4
push dword [ebp - 0x1c]
push 0x452118
push 0x453448
push dword [ebp - 4]
push 0x452118
mov eax, edi
mov edx, 7
call fcn.004048e4
push 0x64
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x104
lea eax, [ebp - 0x378]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404a24
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x45186e
push dword [edi]
push 0x453458
lea eax, [ebp - 0x61c]
lea edx, [ebp - 0x378]
mov ecx, 0x104
call fcn.004047d4
push dword [ebp - 0x61c]
push 0x452118
push 0x453468
lea eax, [ebp - 0x620]
lea edx, [ebp - 0x47c]
mov ecx, 0x104
call fcn.004047d4
push dword [ebp - 0x620]
push 0x452118
push 0x453478
mov eax, dword [ebp - 0x24]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x624]
call fcn.004079b4
push dword [ebp - 0x624]
push 0x452118
push 0x453488
mov eax, dword [ebp - 0x28]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x628]
call fcn.004079b4
push dword [ebp - 0x628]
push 0x452118
push 0x45349c
mov eax, dword [ebp - 0x2c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x62c]
call fcn.004079b4
push dword [ebp - 0x62c]
push 0x452118
mov eax, edi
mov edx, 0x10
call fcn.004048e4
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404a24
push eax
call sub.kernel32.dll_GetDiskFreeSpaceExA
test eax, eax
je 0x451940
push dword [edi]
push 0x4534ac
push 0
push 0x100000
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
call fcn.0040532c
push edx
push eax
lea eax, [ebp - 0x630]
call fcn.004079b4
push dword [ebp - 0x630]
push 0x452cec
push 0x452118
push 0x4534bc
push 0
push 0x100000
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
call fcn.0040532c
push edx
push eax
lea eax, [ebp - 0x634]
call fcn.004079b4
push dword [ebp - 0x634]
push 0x452cec
push 0x452118
push 0x4534cc
push 0
push 0x100000
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x48]
sbb edx, dword [ebp - 0x44]
call fcn.0040532c
push edx
push eax
lea eax, [ebp - 0x638]
call fcn.004079b4
push dword [ebp - 0x638]
push 0x452cec
push 0x452118
mov eax, edi
mov edx, 0xd
call fcn.004048e4
inc ebx
cmp bl, 0x5b
jne 0x45157b
push 0
push 0
push 0
push 0x4534d4
call sub.gdi32.dll_CreateDCA
mov ebx, eax
push 8
push ebx
call sub.gdi32.dll_GetDeviceCaps
lea edx, [ebp - 4]
call fcn.00407994
mov eax, esi
mov edx, 0x452e1c
call fcn.004045b8
push 0xa
push ebx
call sub.gdi32.dll_GetDeviceCaps
lea edx, [ebp - 8]
call fcn.00407994
push 0x74
push ebx
call sub.gdi32.dll_GetDeviceCaps
lea edx, [ebp - 0xc]
call fcn.00407994
mov eax, esi
mov edx, 0x4524d8
call fcn.004045b8
push 0xc
push ebx
call sub.gdi32.dll_GetDeviceCaps
lea edx, [ebp - 0x10]
call fcn.00407994
push ebx
call sub.gdi32.dll_DeleteDC
mov eax, esi
mov edx, 0x4533bc
call fcn.004045b8
push dword [edi]
push 0x4528e4
push 0x4534e4
push 0x452118
push 0x4534f8
push dword [ebp - 4]
push 0x452118
push 0x453508
push dword [ebp - 8]
push 0x452118
push 0x45351c
push dword [ebp - 0xc]
push 0x452118
push 0x453530
push dword [ebp - 0x10]
push 0x452118
mov eax, edi
mov edx, 0x10
call fcn.004048e4
mov eax, esi
mov edx, 0x453548
call fcn.004045b8
push dword [ebp - 0x14]
push 0x4523dc
push 0x4535ac
push dword [ebp - 4]
push 0x4535bc
push dword [ebp - 8]
push 0x4535c8
push dword [ebp - 0xc]
push 0x4535bc
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov edx, 0xa
call fcn.004048e4
mov eax, esi
mov edx, 0x4535d4
call fcn.004045b8
lea eax, [ebp - 0x598]
xor ecx, ecx
mov edx, 7
call fcn.0040308c
lea eax, [ebp - 0x598]
push eax
push 8
call sub.user32.dll_GetKeyboardLayoutList
mov dword [ebp - 0x4c], eax
push 0x45367c
mov eax, dword [ebp - 0x4c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x63c]
call fcn.004079b4
push dword [ebp - 0x63c]
push 0x452118
lea eax, [ebp - 4]
mov edx, 3
call fcn.004048e4
mov eax, dword [ebp - 0x4c]
dec eax
test eax, eax
jl 0x451f2b
inc eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x20], 0
lea ebx, [ebp - 0x598]
mov eax, esi
mov edx, 0x453698
call fcn.004045b8
mov eax, dword [ebx]
and eax, 0xff
cmp eax, 0x38
ja case.0x451aef.0
jmp dword [eax*4 + 0x451af6]
lea eax, [ebp - 0x10]
mov edx, 0x4536f8
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x453708
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x453718
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x453728
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x453738
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x453748
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x453758
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x453768
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x453778
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x453788
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x453798
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x4537a8
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x4537b8
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x4537c4
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x4537d8
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x4537ec
call fcn.004045fc
mov eax, esi
mov edx, 0x4537fc
call fcn.004045b8
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x453838
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x453848
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x453858
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x453868
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x453878
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x453888
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x45389c
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x4538b0
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x4538c4
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x4538d4
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x4538e8
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x4538f8
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x453908
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x45391c
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x453930
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x453940
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x453954
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x453968
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x453974
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x453984
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x453998
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x4539a8
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x4539b8
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x4539c8
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x4539d8
call fcn.004045fc
jmp case.0x451aef.0
lea eax, [ebp - 0x10]
mov edx, 0x4539e4
call fcn.004045fc
mov eax, esi
mov edx, 0x4539f4
call fcn.004045b8
push dword [ebp - 4]
lea edx, [ebp - 0x640]
mov eax, dword [ebp - 0x20]
inc eax
call fcn.00407994
push dword [ebp - 0x640]
push 0x45343c
mov eax, dword [ebx]
and eax, 0xff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x644]
call fcn.004079b4
push dword [ebp - 0x644]
push 0x4523d0
push dword [ebp - 0x10]
push 0x452118
lea eax, [ebp - 4]
mov edx, 7
call fcn.004048e4
inc dword [ebp - 0x20]
add ebx, 4
dec dword [ebp - 0x50]
jne 0x451ad3
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.0040482c
lea eax, [ebp - 0xc]
mov edx, 0x453a7c
call fcn.004045fc
mov eax, dword [0x465198]
push eax
push 0x400
lea eax, [ebp - 4]
push eax
mov ecx, 0x453a98
mov edx, dword [ebp - 0xc]
mov eax, 0x80000001
call fcn.00408e08
mov eax, esi
mov edx, 0x453aac
call fcn.004045b8
cmp dword [ebp - 4], 0
je 0x451fc9
push dword [edi]
push 0x4528e4
push 0x453b84
push dword [ebp - 4]
push 0x452118
push 0x453b9c
mov eax, dword [0x465198]
push eax
push 0x400
lea eax, [ebp - 0x648]
push eax
mov ecx, 0x453bb0
mov edx, dword [ebp - 0xc]
mov eax, 0x80000002
call fcn.00408e08
push dword [ebp - 0x648]
push 0x452118
mov eax, edi
mov edx, 8
call fcn.004048e4
mov eax, esi
mov edx, 0x453bc0
call fcn.004045b8
push 0x453c44
push dword [ebp - 0x14]
push 0x452118
push 0x453c6c
push 0x452118
push 0x453c7c
lea edx, [ebp - 0x64c]
mov eax, 0x90
call fcn.00407994
push dword [ebp - 0x64c]
push dword [edi]
mov eax, edi
mov edx, 8
call fcn.004048e4
mov eax, esi
mov edx, 0x453c90
call fcn.004045b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452053
lea eax, [ebp - 0x64c]
mov edx, 0x25
call fcn.00404588
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00404588
ret