Function at 0x30005220
Capabilities:
Get system information on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x30217f40
push 0x30160f00
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x3021be88]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x140], edi
xor esi, esi
mov dword [ebp - 0x138], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, dword [0x302739a4]
test eax, eax
jne 0x300052ac
push 0x302739a0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x302739a4]
test eax, eax
jne 0x300052ac
push str.DoProcessDump:_Failed_to_obtain_system_page_size._n
call fcn.30009b60
add esp, 4
xor eax, eax
jmp 0x300059a5
cmp dword [0x302739cc], esi
jne 0x300052a5
mov dword [0x3027399c], esi
cmp dword [0x302702f4], esi
je 0x3000550b
mov ecx, dword [0x3026d3e8]
test ecx, ecx
je 0x300052de
mov dword [0x302738e4], ecx
mov edi, dword [0x3026f678]
jmp 0x3000530e
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov dword [ebp - 0x138], eax
mov ecx, dword [0x302738e4]
test ecx, ecx
je 0x30005308
mov eax, ecx
sub eax, esi
neg eax
sbb eax, eax
and esi, eax
mov dword [ebp - 0x138], esi
mov edi, dword [0x30272508]
call fcn.300027c0
test eax, eax
je 0x3000534a
mov eax, dword [0x302702f4]
cmp eax, 1
jg 0x300053a0
mov edx, edi
mov ecx, dword [0x302738e4]
call fcn.30004370
cmp eax, 1
jl 0x3000539b
push str.DoProcessDump:_Skipping_process_dump_as_code_is_identical_on_disk._n
call fcn.30009b40
add esp, 4
mov dword [0x302739cc], 1
test esi, esi
je 0x300054cc
mov ecx, esi
call fcn.300027c0
test eax, eax
je 0x300054cc
push esi
push str.DoProcessDump:_Dumping_new_Imagebase_at_0x_p._n
call fcn.30009b40
add esp, 8
mov eax, dword [0x302739d0]
mov dword [eax + 0x10], 1
mov dword [ebp - 4], 1
mov ecx, esi
cmp dword [0x302702fc], 0
je 0x300054bb
call fcn.30005200
jmp 0x300054c0
mov eax, dword [0x302702f4]
push dword [0x302738e4]
cmp eax, 2
jge 0x300053b2
push str.DoProcessDump:_Code_modification_detected__dumping_Imagebase_at_0x_p._n
jmp 0x300053b7
push str.DoProcessDump:_Dumping_Imagebase_at_0x_p._n
call fcn.30009b40
add esp, 8
mov eax, dword [0x302739d0]
mov dword [eax + 0x10], 1
mov dword [ebp - 4], 0
mov ecx, dword [0x302738e4]
cmp dword [0x302702fc], 0
je 0x300053f7
call fcn.30005200
mov dword [0x302739cc], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x3000534a
call fcn.30004fb0
mov dword [0x302739cc], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x3000534a
mov ebx, dword [ebp - 0x134]
cmp dword [0x302702f8], 0
je 0x300059a0
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x30005978
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x300054b0
push 0x104
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.30162560
add esp, 0xc
push ebx
push str.FILE_DUMP:_s
push 0xffffffffffffffff
push 0x104
lea eax, [ebp - 0x128]
push eax
call fcn.30009a50
add esp, 0x14
lea ecx, [ebp - 0x128]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x30005497
sub ecx, edx
push ecx
lea eax, [ebp - 0x128]
push eax
call fcn.3004f500
add esp, 8
push ebx
push str.DoProcessDump:_Full_process_memory_dump_saved_to_file:__s._n
jmp 0x3000597e
call fcn.30004fb0
mov dword [0x302739cc], eax
mov dword [ebp - 4], 0xfffffffe
cmp dword [0x302739cc], 0
jne 0x30005505
push dword [0x302738e4]
push str.DoProcessDump:_Attempting_raw_dump_of_Imagebase_at_0x_p._n
call fcn.30009b40
add esp, 8
mov ecx, dword [0x302738e4]
call fcn.30002410
mov edx, eax
mov ecx, dword [0x302738e4]
call fcn.30004bf0
mov dword [0x302739cc], eax
mov edi, dword [ebp - 0x12c]
cmp dword [0x302702f8], 0
je 0x300055cb
mov ecx, str.memory
call fcn.30003280
mov ebx, eax
mov dword [ebp - 0x134], ebx
test ebx, ebx
jne 0x30005559
push str.DoProcessDump:_Unable_to_get_path_to_dump_file_directory._n
call fcn.30009b40
add esp, 4
jmp 0x30005436
mov edx, 1
mov ecx, 0x104
call fcn.300011a0
mov edi, eax
mov dword [ebp - 0x140], edi
mov eax, dword [0x302739d0]
push dword [eax + 8]
push str._u.dmp
push 0x104
push edi
call fcn.30001ff0
add esp, 0x10
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x12c], edi
cmp edi, 0xffffffff
jne 0x300055cb
push str.DoProcessDump:_Unable_to_create_dump_file_for_full_process_memory_dump._n
call fcn.30009b40
add esp, 4
jmp 0x30005436
cmp dword [0x302702f4], 0
jne 0x300055e1
cmp dword [0x302702f8], 0
je 0x300059a0
mov ebx, dword [0x302739a8]
mov dword [ebp - 0x13c], ebx
cmp ebx, dword [0x302739ac]
jae 0x30005430
push 0x1c
lea eax, [ebp - 0x15c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x30005615
add ebx, dword [0x302739a4]
jmp 0x300055e7
test dword [ebp - 0x14c], 0x1000
je 0x3000596d
test dword [ebp - 0x144], 0x1060000
je 0x3000596d
cmp dword [0x302702f4], 0
je 0x300057ab
mov eax, dword [ebp - 0x15c]
cmp eax, dword [0x302738e4]
je 0x300057ab
cmp eax, esi
je 0x300057ab
mov ecx, ebx
call fcn.3004c550
test eax, eax
jne 0x300057ab
mov ecx, 7
lea esi, [ebp - 0x15c]
lea edi, [ebp - 0x184]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x300057a5
cmp eax, dword [0x3026d3e4]
je 0x300057a5
push 0x1c
lea ecx, [ebp - 0x1a0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x300057a5
mov eax, dword [ebp - 0x18c]
test al, 0xee
je 0x300057a5
test eax, 0x101
jne 0x300057a5
test eax, eax
je 0x300057a5
push 0x104
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x180]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_K32GetMappedFileNameA]
mov edi, eax
mov esi, dword [ebp - 0x184]
mov ecx, esi
call fcn.30003ec0
test eax, eax
je 0x3000574f
test edi, edi
jne 0x3000574f
cmp dword [ebp - 0x170], 4
jne 0x3000574f
cmp dword [ebp - 0x16c], 0x40000
jne 0x3000574f
cmp dword [ebp - 0x174], 0x1000
jne 0x3000574f
push esi
push str.DumpInterestingRegions:_Dumping_.NET_image_at_0x_p._n
call fcn.30009b40
add esp, 8
mov eax, dword [0x302739d0]
mov dword [eax + 4], edi
mov dword [eax + 0x10], 8
mov dword [eax + 0x1c], esi
mov ecx, esi
call fcn.30004fb0
mov eax, dword [0x3026e818]
test eax, eax
je 0x300057a5
cmp dword [eax + 4], esi
je 0x30005765
mov eax, dword [eax]
test eax, eax
jne 0x30005758
jmp 0x300057a5
add eax, 0xc
je 0x300057a5
push esi
push str.DumpInterestingRegions:_Dumping_.NET_JIT_native_cache_at_0x_p._n
call fcn.30009b40
add esp, 8
mov eax, dword [0x302739d0]
mov dword [eax + 4], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x24], str..NET_JIT_native_cache__32_bit_
mov dword [eax + 0x1c], esi
mov ecx, esi
call fcn.30002410
mov edx, eax
mov ecx, esi
call fcn.30004bf0
mov edi, dword [ebp - 0x12c]
cmp dword [0x302702f8], 0
je 0x30005956
mov ecx, ebx
call fcn.3004c550
test eax, eax
jne 0x30005956
call fcn.300027c0
test eax, eax
je 0x30005956
mov esi, dword [0x30272518]
mov dword [0x30272518], 0
mov dword [0x3027251c], 0
mov edx, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x15c]
call fcn.3001e1c0
mov dword [0x30272518], esi
cmp dword [0x3027251c], 0
jne 0x30005956
mov eax, ebx
cdq
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], edx
mov edx, 1
mov ecx, dword [ebp - 0x150]
call fcn.300011a0
mov esi, eax
mov dword [ebp - 0x160], esi
test esi, esi
jne 0x3000585b
push dword [ebp - 0x150]
push dword [ebp - 0x15c]
push str.DoProcessDump:_Error_allocating_memory_for_copy_of_region_at_0x_p__size_0x_x._n
call fcn.30009b40
add esp, 0xc
jmp 0x30005430
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x3000587c
push dword [ebp - 0x150]
push eax
push esi
call fcn.301619b0
add esp, 0xc
push 0
lea eax, [ebp - 0x130]
push eax
push 8
lea eax, [ebp - 0x168]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x130]
push eax
push 4
lea eax, [ebp - 0x150]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x130]
push eax
push 4
lea eax, [ebp - 0x14c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x130]
push eax
push 4
lea eax, [ebp - 0x144]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x130]
push eax
push 4
lea eax, [ebp - 0x148]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x150]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, esi
call fcn.300011f0
mov dword [ebp - 4], 0xfffffffe
add ebx, dword [ebp - 0x150]
mov esi, dword [ebp - 0x138]
mov edi, dword [ebp - 0x12c]
jmp 0x300055e7
add ebx, dword [ebp - 0x150]
mov esi, dword [ebp - 0x138]
mov edi, dword [ebp - 0x12c]
jmp 0x300055e7
add ebx, dword [ebp - 0x150]
jmp 0x300055e7
push ebx
push str.DoProcessDump:_There_was_a_problem_saving_full_process_memory_dump_to:__s._n
call fcn.30009b40
add esp, 8
mov ecx, dword [ebp - 0x140]
test ecx, ecx
je 0x30005995
call fcn.300011f0
test ebx, ebx
je 0x300059a0
mov ecx, ebx
call fcn.300011f0
mov eax, dword [0x302739cc]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret