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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x30216e78
push 0x3015f8a0
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x3021ae88]
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 [0x302728a4]
test eax, eax
jne 0x3000522c
push 0x302728a0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x302728a4]
test eax, eax
jne 0x3000522c
push str.DoProcessDump:_Failed_to_obtain_system_page_size._n
call fcn.30009b20
add esp, 4
xor eax, eax
jmp 0x3000592b
cmp dword [0x302728cc], esi
jne 0x30005225
cmp dword [0x3026f230], esi
je 0x3000541f
mov ecx, dword [0x3026c328]
test ecx, ecx
je 0x30005258
mov dword [0x302727f0], ecx
mov ebx, dword [0x3026e5b8]
jmp 0x30005288
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov dword [ebp - 0x138], eax
mov ecx, dword [0x302727f0]
test ecx, ecx
je 0x30005282
mov eax, ecx
sub eax, esi
neg eax
sbb eax, eax
and esi, eax
mov dword [ebp - 0x138], esi
mov ebx, dword [0x3027144c]
call fcn.300028c0
test eax, eax
je 0x300052c8
mov eax, dword [0x3026f230]
cmp eax, 1
jg 0x3000532d
mov edx, ebx
mov ecx, dword [0x302727f0]
call fcn.300042f0
cmp eax, 1
jl 0x30005328
push str.DoProcessDump:_Skipping_process_dump_as_code_is_identical_on_disk._n
call fcn.30009b00
add esp, 4
mov dword [0x302728cc], 1
test esi, esi
je 0x300053e6
mov ecx, esi
call fcn.300028c0
test eax, eax
je 0x300053e6
push esi
push str.DoProcessDump:_Dumping_new_Imagebase_at_0x_p._n
call fcn.30009b00
add esp, 8
mov eax, dword [0x302728d0]
mov dword [eax + 0x10], 1
mov eax, dword [0x3027289c]
test eax, eax
je 0x30005308
dec eax
mov dword [0x3027289c], eax
mov dword [ebp - 4], 1
mov ecx, esi
cmp dword [0x3026f238], 0
je 0x300053d5
call fcn.30005180
jmp 0x300053da
mov eax, dword [0x3026f230]
push dword [0x302727f0]
cmp eax, 2
jge 0x3000533f
push str.DoProcessDump:_Code_modification_detected__dumping_Imagebase_at_0x_p._n
jmp 0x30005344
push str.DoProcessDump:_Dumping_Imagebase_at_0x_p._n
call fcn.30009b00
add esp, 8
mov eax, dword [0x302728d0]
mov dword [eax + 0x10], 1
mov eax, dword [0x3027289c]
test eax, eax
je 0x30005367
dec eax
mov dword [0x3027289c], eax
mov dword [ebp - 4], edi
mov ecx, dword [0x302727f0]
cmp dword [0x3026f238], 0
je 0x3000538f
call fcn.30005180
mov dword [0x302728cc], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x300052c8
call fcn.30004f30
mov dword [0x302728cc], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x300052c8
call fcn.30004f30
mov dword [0x302728cc], eax
mov dword [ebp - 4], 0xfffffffe
cmp dword [0x302728cc], 0
jne 0x3000541f
push dword [0x302727f0]
push str.DoProcessDump:_Attempting_raw_dump_of_Imagebase_at_0x_p._n
call fcn.30009b00
add esp, 8
mov ecx, dword [0x302727f0]
call fcn.30002520
mov edx, eax
mov ecx, dword [0x302727f0]
call fcn.30004ae0
mov dword [0x302728cc], eax
cmp dword [0x3026f234], 0
je 0x300054f6
mov ecx, str.memory
call fcn.30003370
mov ebx, eax
mov dword [ebp - 0x134], ebx
test ebx, ebx
jne 0x30005484
push str.DoProcessDump:_Unable_to_get_path_to_dump_file_directory._n
call fcn.30009b00
add esp, 4
jmp 0x30005768
mov edx, 1
mov ecx, 0x104
call fcn.300011a0
mov edi, eax
mov dword [ebp - 0x140], edi
mov eax, dword [0x302728d0]
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 0x300054f6
push str.DoProcessDump:_Unable_to_create_dump_file_for_full_process_memory_dump._n
call fcn.30009b00
add esp, 4
jmp 0x30005768
cmp dword [0x3026f230], 0
jne 0x3000550c
cmp dword [0x3026f234], 0
je 0x30005926
mov ebx, dword [0x302728a8]
mov dword [ebp - 0x13c], ebx
cmp ebx, dword [0x302728ac]
jae 0x3000575c
push 0x1c
lea eax, [ebp - 0x15c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x30005540
add ebx, dword [0x302728a4]
jmp 0x30005512
test dword [ebp - 0x14c], 0x1000
je 0x300058f3
test dword [ebp - 0x144], 0x1060000
je 0x300058f3
cmp dword [0x3026f230], 0
je 0x300056ad
mov eax, dword [ebp - 0x15c]
cmp eax, dword [0x302727f0]
je 0x300056ad
cmp eax, esi
je 0x300056ad
mov ecx, ebx
call fcn.3004af10
test eax, eax
jne 0x300056ad
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 0x300056ad
cmp eax, dword [0x3026c324]
je 0x300056ad
mov ecx, eax
call fcn.300028c0
test eax, eax
je 0x300056ad
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.30003e60
test eax, eax
je 0x30005650
test edi, edi
jne 0x30005650
cmp dword [ebp - 0x170], 4
jne 0x30005650
cmp dword [ebp - 0x16c], 0x40000
jne 0x30005650
cmp dword [ebp - 0x174], 0x1000
jne 0x30005650
push esi
push str.DumpInterestingRegions:_Dumping_.NET_image_at_0x_p._n
call fcn.30009b00
add esp, 8
mov eax, dword [0x302728d0]
mov dword [eax + 4], edi
mov dword [eax + 0x10], 8
mov dword [eax + 0x1c], esi
mov ecx, esi
call fcn.30004f30
mov eax, dword [0x3026d758]
test eax, eax
je 0x300056ad
lea esp, [esp]
cmp dword [eax + 4], esi
je 0x3000566d
mov eax, dword [eax]
test eax, eax
jne 0x30005660
jmp 0x300056ad
add eax, 0xc
je 0x300056ad
push esi
push str.DumpInterestingRegions:_Dumping_.NET_JIT_native_cache_at_0x_p._n
call fcn.30009b00
add esp, 8
mov eax, dword [0x302728d0]
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.30002520
mov edx, eax
mov ecx, esi
call fcn.30004ae0
cmp dword [0x3026f234], 0
je 0x300058e2
mov ecx, ebx
call fcn.3004af10
test eax, eax
jne 0x300058e2
call fcn.300028c0
test eax, eax
je 0x300058e2
mov esi, dword [0x30271458]
mov dword [0x30271458], 0
mov dword [0x3027145c], 0
mov edx, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x15c]
call fcn.3001e380
mov dword [0x30271458], esi
cmp dword [0x3027145c], 0
jne 0x300058e2
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 0x300057e7
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.30009b00
add esp, 0xc
mov edi, dword [ebp - 0x12c]
mov ebx, dword [ebp - 0x134]
cmp dword [0x3026f234], 0
je 0x30005926
test edi, edi
je 0x300058fe
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x300057dc
push 0x104
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.30160f00
add esp, 0xc
push ebx
push str.FILE_DUMP:_s
push 0xffffffffffffffff
push 0x104
lea eax, [ebp - 0x128]
push eax
call fcn.30009a10
add esp, 0x14
lea ecx, [ebp - 0x128]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x300057c3
sub ecx, edx
push ecx
lea eax, [ebp - 0x128]
push eax
call fcn.3004de10
add esp, 8
push ebx
push str.DoProcessDump:_Full_process_memory_dump_saved_to_file:__s._n
jmp 0x30005904
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x30005808
push dword [ebp - 0x150]
push eax
push esi
call fcn.30160350
add esp, 0xc
push 0
lea eax, [ebp - 0x130]
push eax
push 8
lea eax, [ebp - 0x168]
push eax
mov edi, dword [ebp - 0x12c]
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]
jmp 0x30005512
add ebx, dword [ebp - 0x150]
mov esi, dword [ebp - 0x138]
jmp 0x30005512
add ebx, dword [ebp - 0x150]
jmp 0x30005512
push ebx
push str.DoProcessDump:_There_was_a_problem_saving_full_process_memory_dump_to:__s._n
call fcn.30009b00
add esp, 8
mov ecx, dword [ebp - 0x140]
test ecx, ecx
je 0x3000591b
call fcn.300011f0
test ebx, ebx
je 0x30005926
mov ecx, ebx
call fcn.300011f0
mov eax, dword [0x302728cc]
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.3015dd6d
mov esp, ebp
pop ebp
ret