Function at 0x42b6f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b988
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x4640b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x28], ebx
lea eax, [ebx + 4]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00422ca0
push 0x4528fc
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push ebx
push eax
call fcn.00429ca0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00422540
add esp, 0x20
mov edx, dword [ebp - 0x24]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b774
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, 0xffffffff
je 0x42bad2
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push eax
push 4
lea eax, [ebp - 0x34]
mov dword [ebp - 0x10], 0
push eax
push esi
mov dword [ebp - 0x34], ecx
call ebx
test eax, eax
je 0x42bacb
cmp dword [ebp - 0x10], 4
jne 0x42bacb
push 1
push 0
push 0
push esi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x3c], eax
cmp eax, 0xffffffff
je 0x42bacb
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x38]
push eax
push esi
call ebx
test eax, eax
je 0x42bacb
cmp dword [ebp - 0x10], 4
jne 0x42bacb
push 0x100000
call sub.mfc140u.dll_operator
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x42bacb
push 0x100000
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x14], 0
mov edi, ebx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x20], edi
push 0
call fcn.0042d2e0
push 0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 4
call fcn.0042d2e0
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 5
mov eax, dword [eax + 8]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
cmp esi, eax
je 0x42ba2c
nop dword [eax + eax]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x42b8bf
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [esi + 0x10]
push 0xfde9
push eax
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
push eax
push edi
call fcn.0042cd50
mov edi, dword [ebp - 0x20]
add esp, 0x10
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x1c], eax
call fcn.0042d4c0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42b8dc
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea ecx, [ebp - 0x64]
call fcn.0042d900
mov ecx, ebx
inc eax
sub ecx, edi
add ecx, 0x100000
cmp eax, ecx
jl 0x42b923
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
sub edi, ebx
add dword [ebp - 0x14], edi
push edi
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42ba8b
cmp edi, dword [ebp - 0x10]
jne 0x42ba8b
mov edi, ebx
lea ecx, [ebp - 0x64]
call fcn.0042d900
inc eax
lea ecx, [ebp - 0x64]
push eax
call fcn.0042d8f0
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x64]
call fcn.0042d900
inc eax
add edi, eax
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x42b955
xor esi, esi
jmp 0x42b98c
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, dword [esi + 0x14]
push 0xfde9
push eax
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
push eax
push esi
call fcn.0042cd50
add esp, 0x10
mov esi, eax
push esi
lea ecx, [ebp - 0x50]
call fcn.0042d4c0
test esi, esi
je 0x42b9a3
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea ecx, [ebp - 0x50]
call fcn.0042d900
mov ecx, ebx
inc eax
sub ecx, edi
add ecx, 0x100000
cmp eax, ecx
jl 0x42b9eb
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push 0
push eax
sub edi, ebx
mov dword [ebp - 0x10], 0
add dword [ebp - 0x14], edi
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42baa7
cmp edi, dword [ebp - 0x10]
jne 0x42baa7
mov edi, ebx
lea ecx, [ebp - 0x50]
call fcn.0042d900
inc eax
lea ecx, [ebp - 0x50]
push eax
call fcn.0042d8f0
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x50]
call fcn.0042d900
inc eax
lea ecx, [ebp - 0x24]
add edi, eax
mov dword [ebp - 0x20], edi
call fcn.00408d10
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
cmp esi, dword [eax + 8]
jne 0x42b880
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov byte [edi], 0
inc edi
push 0
push eax
sub edi, ebx
mov dword [ebp - 0x10], 0
add dword [ebp - 0x14], edi
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42baa7
cmp edi, dword [ebp - 0x10]
jne 0x42baa7
push 0
push 0
push dword [ebp - 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x42baa7
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42ba90
cmp dword [ebp - 0x10], 4
jne 0x42ba90
xor edi, edi
jmp 0x42ba95
push dword [ebp - 0x18]
jmp 0x42baa8
mov edi, 1
push ebx
call sub.mfc140u.dll_operator_1
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42bab9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call sub.mfc140u.dll_operator_1
add esp, 4
xor edi, edi
lea ecx, [ebp - 0x50]
call fcn.0042d3a0
lea ecx, [ebp - 0x64]
call fcn.0042d3a0
jmp 0x42bad4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov edx, dword [ebp - 0x2c]
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42baf5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x42bb14
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret