Function at 0x420d00
Capabilities:
Get memory capacity
Get system information on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5fc
mov eax, dword [0x42c34c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x59c], eax
mov eax, 0x200
push edi
mov dword [ebp - 0x5b0], eax
mov dword [ebp - 0x5ac], eax
mov eax, dword [str.Microsoft_SQL_Server_Replication:_Exception_Stack_Dump_r_n_r_n]
mov ecx, 0xf
mov esi, str._r_n_r_n
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x420d50
lea edi, [ebp - 0x104]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x420d62
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x104]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x420d80
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0xf
mov esi, str._r_n_r_n
rep movsd dword es:[edi], dword [esi]
push 0
lea ecx, [ebp - 0x5a0]
push ecx
lea edx, [ebp - 0x104]
push edx
call ebx
mov ecx, dword [ebp - 0x59c]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea eax, [ebp - 0x104]
push eax
push ecx
call esi
lea edx, [ebp - 0x5b4]
push edx
call dword [sym.imp.MSVCR71.dll_time]
lea eax, [ebp - 0x5b4]
push eax
call dword [sym.imp.MSVCR71.dll_localtime]
add esp, 8
lea ecx, [ebp - 0x5dc]
push ecx
mov dword [ebp - 0x5b8], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea edx, [ebp - 0x598]
push edx
mov dword [ebp - 0x598], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x420e1b
mov ecx, 0x25
lea edi, [ebp - 0x598]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x5fc]
push eax
mov dword [ebp - 0x5fc], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
lea ecx, [ebp - 0x5ac]
push ecx
lea edx, [ebp - 0x5b0]
push edx
lea edi, [ebp - 0x304]
lea eax, [ebp - 0x504]
call fcn.00420c80
mov al, byte [ebp - 0x504]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
test al, al
je 0x420ea9
mov ecx, dword [str.Computer_type_is__s._r_n]
lea eax, [ebp - 0x504]
push eax
push ecx
lea edx, [ebp - 0x104]
push edx
call edi
add esp, 0xc
push 0
lea eax, [ebp - 0x5a0]
push eax
lea ecx, [ebp - 0x104]
push ecx
call ebx
push eax
mov eax, dword [ebp - 0x59c]
lea edx, [ebp - 0x104]
push edx
push eax
call esi
test eax, eax
je 0x421205
mov al, byte [ebp - 0x304]
test al, al
je 0x420f74
mov edx, dword [str.Bios_Version_is__s_r_n]
lea ecx, [ebp - 0x304]
push ecx
push edx
lea eax, [ebp - 0x104]
push eax
call edi
add esp, 0xc
push 0
lea ecx, [ebp - 0x5a0]
push ecx
lea edx, [ebp - 0x104]
push edx
call ebx
mov ecx, dword [ebp - 0x59c]
push eax
lea eax, [ebp - 0x104]
push eax
push ecx
call esi
test eax, eax
je 0x421205
lea eax, [ebp - 0x304]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420f05
sub eax, edx
mov cl, byte [ebp + eax - 0x303]
test cl, cl
je 0x420f74
lea eax, [ebp - 0x304]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420f22
sub eax, edx
mov edx, eax
lea eax, [ebp - 0x304]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420f36
sub eax, edi
mov edi, eax
push 0
lea eax, [ebp - 0x5a0]
push eax
lea ecx, [ebp + edx - 0x303]
push ecx
call ebx
push eax
mov eax, dword [ebp - 0x59c]
lea edx, [ebp + edi - 0x303]
push edx
push eax
call esi
test eax, eax
je 0x421205
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebp - 0x5b8]
push ecx
call dword [sym.imp.MSVCR71.dll_asctime]
mov edx, dword [str.Current_local_time_is__s._r_n]
push eax
push edx
lea eax, [ebp - 0x104]
push eax
call edi
lea ecx, [ebp - 0x104]
push 0xa
push ecx
call dword [sym.imp.MSVCR71.dll_strchr]
add esp, 0x18
test eax, eax
jne 0x420fbe
lea edx, [ebp - 0x104]
push 0xd
push edx
call dword [sym.imp.MSVCR71.dll_strchr]
add esp, 8
test eax, eax
je 0x420fc1
mov byte [eax], 0
push 0
lea eax, [ebp - 0x5a0]
push eax
lea ecx, [ebp - 0x104]
push ecx
call ebx
push eax
mov eax, dword [ebp - 0x59c]
lea edx, [ebp - 0x104]
push edx
push eax
call esi
test eax, eax
je 0x421205
mov ecx, dword [ebp - 0x5c8]
mov edx, dword [str._r_n_d]
push ecx
push edx
lea eax, [ebp - 0x104]
push eax
call edi
mov esi, eax
mov eax, dword [ebp - 0x588]
add esp, 0xc
cmp eax, 2
jne 0x4210a7
movzx eax, word [ebp - 0x5dc]
cmp eax, 3
ja case.default.0x421023
jmp dword [eax*4 + 0x421320]
movzx ecx, word [ebp - 0x5bc]
mov edx, dword [str.Intel_x86_level__d]
push ecx
push edx
lea eax, [ebp + esi - 0x104]
push eax
jmp 0x4210d4
movzx ecx, word [ebp - 0x5bc]
mov edx, dword [str.Mips_level__d]
push ecx
push edx
lea eax, [ebp + esi - 0x104]
push eax
jmp 0x4210d4
movzx ecx, word [ebp - 0x5bc]
mov edx, dword [str.Alpha_level__d]
push ecx
push edx
lea eax, [ebp + esi - 0x104]
push eax
jmp 0x4210d4
movzx ecx, word [ebp - 0x5bc]
mov edx, dword [str.PPC_level__d]
push ecx
push edx
lea eax, [ebp + esi - 0x104]
push eax
jmp 0x4210d4
mov ecx, dword [str.Unknown.]
push ecx
lea edx, [ebp + esi - 0x104]
push edx
call edi
add esp, 8
jmp 0x4210d9
cmp word [ebp - 0x5dc], 0
lea ecx, [ebp + esi - 0x104]
je 0x4210c6
mov eax, dword [str.Unknown.]
push eax
push ecx
call edi
add esp, 8
jmp 0x4210d9
mov edx, dword [ebp - 0x5c4]
mov eax, dword [str.Intel_x86_level__d]
push edx
push eax
push ecx
call edi
add esp, 0xc
lea edx, [ebp - 0x5a8]
push edx
add esi, eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov eax, dword [ebp - 0x5a8]
test eax, eax
mov edi, dword [sym.imp.MSVCR71.dll_sprintf]
mov ecx, dword [ebp - 0x5a4]
jne 0x421102
test ecx, ecx
je 0x421133
push 0
push 0xf4240
push ecx
push eax
call fcn.00424c60
push edx
push eax
mov dword [ebp - 0x5a8], eax
mov eax, dword [str.___I64d_Mhz]
push eax
lea ecx, [ebp + esi - 0x104]
push ecx
mov dword [ebp - 0x5a4], edx
call edi
add esp, 0x10
add esi, eax
mov edx, dword [str._processor_s_._r_n]
push edx
lea eax, [ebp + esi - 0x104]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
push 0
lea ecx, [ebp - 0x5a0]
push ecx
lea edx, [ebp - 0x104]
push edx
call ebx
mov ecx, dword [ebp - 0x59c]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea eax, [ebp - 0x104]
push eax
push ecx
call esi
test eax, eax
je 0x421205
cmp dword [ebp - 0x588], 2
lea edx, [ebp - 0x584]
push edx
jne 0x4211b0
mov eax, dword [ebp - 0x58c]
mov ecx, dword [ebp - 0x590]
mov edx, dword [ebp - 0x594]
push eax
mov eax, dword [str.Windows_NT__d._d_Build__d_CSD__s._r_n]
push ecx
push edx
push eax
lea ecx, [ebp - 0x104]
push ecx
jmp 0x4211d5
mov ecx, dword [ebp - 0x58c]
mov eax, ecx
shr eax, 0x10
movzx ecx, cx
push ecx
mov ecx, dword [str.Windows__d._d_Build__d_CSD__s._r_n]
movzx edx, al
push edx
movzx eax, ah
push eax
push ecx
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
lea eax, [ebp - 0x5a0]
push eax
lea ecx, [ebp - 0x104]
push ecx
call ebx
push eax
mov eax, dword [ebp - 0x59c]
lea edx, [ebp - 0x104]
push edx
push eax
call esi
test eax, eax
jne 0x421216
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
call fcn.00424a57
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x5f8]
push ecx
lea edx, [ebp - 0x104]
push str.MemoryLoad__d___t_t
push edx
call edi
add esp, 0xc
push 0
lea eax, [ebp - 0x5a0]
push eax
lea ecx, [ebp - 0x104]
push ecx
call ebx
push eax
mov eax, dword [ebp - 0x59c]
lea edx, [ebp - 0x104]
push edx
push eax
call esi
mov ecx, dword [ebp - 0x5f4]
shr ecx, 0x14
push ecx
lea edx, [ebp - 0x104]
push str.TotalPhys__d_MB_r_n
push edx
call edi
add esp, 0xc
push 0
lea eax, [ebp - 0x5a0]
push eax
lea ecx, [ebp - 0x104]
push ecx
call ebx
push eax
mov eax, dword [ebp - 0x59c]
lea edx, [ebp - 0x104]
push edx
push eax
call esi
mov ecx, dword [ebp - 0x5f0]
shr ecx, 0x14
push ecx
lea edx, [ebp - 0x104]
push str.AvailPhys__d_MB_t_t
push edx
call edi
add esp, 0xc
push 0
lea eax, [ebp - 0x5a0]
push eax
lea ecx, [ebp - 0x104]
push ecx
call ebx
push eax
mov eax, dword [ebp - 0x59c]
lea edx, [ebp - 0x104]
push edx
push eax
call esi
mov ecx, dword [ebp - 0x5ec]
shr ecx, 0x14
push ecx
lea edx, [ebp - 0x104]
push str.TotalPageFile__d_MB_r_n
push edx
call edi
add esp, 0xc
push 0
lea eax, [ebp - 0x5a0]
push eax
lea ecx, [ebp - 0x104]
push ecx
call ebx
push eax
mov eax, dword [ebp - 0x59c]
lea edx, [ebp - 0x104]
push edx
push eax
call esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00424a57
mov esp, ebp
pop ebp
ret