Function at 0x425780
Capabilities:
Access peb ldr_data
Check if file exists
Get kernel32 base address
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x466758
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x485300]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esp + 0x18]
call fcn.0041e570
mov ebx, edi
mov dword [esp + 0x38], 0
call fcn.00425250
mov eax, edi
push eax
lea ecx, [esp + 0x20]
push ecx
mov ebx, str.log_snapshot.txt
call fcn.0040b050
mov byte [esp + 0x40], 1
mov eax, dword [esi]
sub eax, 0x10
call fcn.00405820
add eax, 0x10
mov dword [esp + 0x18], eax
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x44], 2
call fcn.004252c0
add esp, 0xc
push eax
lea eax, [esp + 0x2c]
push eax
mov ebx, 0x473e74
mov byte [esp + 0x40], 3
call fcn.0040b050
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x30]
push edx
mov ebx, eax
mov byte [esp + 0x48], 4
call fcn.00405480
push eax
lea eax, [esp + 0x34]
push eax
mov ebx, 0x46c524
mov byte [esp + 0x50], 5
call fcn.0040b050
add esp, 0x18
lea edi, [esp + 0x10]
mov byte [esp + 0x38], 6
call fcn.004055e0
mov byte [esp + 0x38], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425870
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425895
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4258ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4258df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esi]
push esi
xor ebx, ebx
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4258f3
lea edi, [ebx + 1]
mov ecx, dword [esp + 0x1c]
push 0x473e78
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], ebx
call fcn.00445569
mov esi, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x425965
cmp edi, ebx
jne 0x42593a
mov eax, dword [esp + 0x14]
push eax
push 1
lea ecx, [esp + 0x18]
push 2
push ecx
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], 0xfe
call fcn.00445320
add esp, 0x10
mov edx, dword [esp + 0x14]
mov eax, dword [esi - 0xc]
push edx
push eax
push 2
push esi
call fcn.00445320
mov eax, dword [esp + 0x24]
push eax
call fcn.00445165
mov ecx, dword [esp + 0x28]
add esp, 0x14
push ecx
call fcn.00445414
add esp, 4
lea eax, [esi - 0x10]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x38], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42598a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4259ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4259d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret