Function at 0x422fc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x29c
mov eax, dword [0x4b1810]
xor eax, esp
mov dword [esp + 0x298], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], ebx
cmp dword [esi + 0x14], 8
push edi
mov dword [esp + 0x1c], eax
jb 0x422ffe
mov eax, dword [esi]
jmp 0x423000
mov eax, esi
push 0
push 0
push 3
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0xc], ebx
test edi, edi
je 0x423297
lea ecx, [esp + 0xc]
call fcn.00423700
cmp edi, 0xffffffff
je 0x42306b
mov dword [esp + 0xc], edi
call fcn.00427060
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x4b71f8]
mov dword [esp + 0x14], eax
test ecx, ecx
jne 0x423058
call fcn.00427170
mov ecx, dword [0x4b71f8]
push dword [esp + 0x24]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push dword [esp + 0x18]
push edx
push edi
call dword [eax + 4]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x423297
cmp eax, 0xffffffff
je 0x423297
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push 0
push ecx
push edi
push dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4231a9
cmp dword [esp + 0x18], edi
jne 0x4230ac
mov bl, 1
jmp 0x4233b9
call fcn.00423770
cmp eax, 1
jl 0x423175
lea eax, [esp + 0x274]
mov ebx, 0x30
push esi
push eax
call fcn.00427c20
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push 1
push 2
lea ecx, [esp + 0x48]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], 0xffffffff
call fcn.0041eb80
mov dword [esp + 0xdc], 0x412ba8
mov dword [esp + 0xe0], 0x2a3
call esi
push 0x2a3
push 0x412ba8
lea ecx, [esp + 0x40]
mov dword [esp + 0xec], eax
call fcn.0041f870
lea eax, [esp + 0x274]
push eax
push 0x412c2c
push edi
push 0x412c3c
push dword [esp + 0x28]
lea eax, [esp + 0x54]
push 0x412c48
push eax
call fcn.0041b5a0
add esp, 8
mov ecx, eax
call fcn.00420020
push eax
call fcn.0041b5a0
add esp, 8
mov ecx, eax
call fcn.0041fee0
push eax
call fcn.0041b5a0
add esp, 8
push eax
call fcn.0041b320
add esp, 8
test bl, 0x20
je 0x423186
lea ecx, [esp + 0x30]
and ebx, 0xffffffdf
call fcn.0041fd90
test bl, 0x10
je 0x4233b7
cmp dword [esp + 0x288], 0x10
jb 0x4233b7
push dword [esp + 0x274]
jmp 0x4233af
call fcn.00423770
cmp eax, 1
jl 0x423260
lea eax, [esp + 0x28c]
mov ebx, 0xc
push esi
push eax
call fcn.00427c20
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push 1
push 2
lea ecx, [esp + 0x1b8]
mov dword [esp + 0x1a8], eax
mov dword [esp + 0x1b0], 0xffffffff
call fcn.0041eb80
mov dword [esp + 0x24c], 0x412ba8
mov dword [esp + 0x250], 0x2a0
call esi
push 0x2a0
push 0x412ba8
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x25c], eax
call fcn.0041f870
push 0x412c14
lea eax, [esp + 0x290]
push eax
lea eax, [esp + 0x1b8]
push 0x412c1c
push eax
call fcn.0041b5a0
add esp, 8
push eax
call fcn.0041b320
add esp, 8
push eax
call fcn.0041b5a0
add esp, 8
test bl, 8
je 0x423274
lea ecx, [esp + 0x1a0]
and ebx, 0xfffffff7
call fcn.0041fd90
test bl, 4
je 0x4233b7
cmp dword [esp + 0x2a0], 0x10
jb 0x4233b7
push dword [esp + 0x28c]
jmp 0x4233af
mov ecx, dword [0x4b715c]
test ecx, ecx
je 0x4232bd
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x412ba8
push eax
mov dword [esp + 0x30], 0x43
call fcn.00430250
jmp 0x4232e1
mov ecx, dword [0x4b7158]
lea eax, [esp + 0x14]
neg ecx
mov dword [esp + 0x10], 0xffffffff
cmp ecx, 0xffffffff
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x10]
cmovle eax, edx
mov eax, dword [eax]
cmp eax, 1
jl 0x423385
lea eax, [esp + 0x25c]
mov ebx, 3
push esi
push eax
call fcn.00427c20
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push 1
push 2
lea ecx, [esp + 0x100]
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf8], 0xffffffff
call fcn.0041eb80
mov dword [esp + 0x194], 0x412ba8
mov dword [esp + 0x198], 0x295
call esi
push 0x295
push 0x412ba8
lea ecx, [esp + 0xf8]
mov dword [esp + 0x1a4], eax
call fcn.0041f870
lea eax, [esp + 0x25c]
push eax
lea eax, [esp + 0xfc]
push 0x412bf8
push eax
call fcn.0041b5a0
add esp, 8
push eax
call fcn.0041b320
add esp, 8
test bl, 2
je 0x423399
lea ecx, [esp + 0xe8]
and ebx, 0xfffffffd
call fcn.0041fd90
test bl, 1
je 0x4233b7
cmp dword [esp + 0x270], 0x10
jb 0x4233b7
push dword [esp + 0x25c]
call fcn.0048d7cb
add esp, 4
xor bl, bl
mov eax, dword [esp + 0xc]
test eax, eax
je 0x42341b
cmp eax, 0xffffffff
je 0x42341b
call fcn.00427060
mov edi, dword [ebp + 4]
mov esi, eax
mov ecx, dword [0x4b71f8]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
test ecx, ecx
jne 0x4233ed
call fcn.00427170
mov ecx, dword [0x4b71f8]
mov eax, dword [ecx]
lea edx, [esp + 0xc]
push esi
push edi
push edx
push dword [esp + 0x1c]
call dword [eax + 8]
mov ecx, dword [0x4b71f8]
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x423416
call fcn.00427170
mov ecx, dword [0x4b71f8]
mov edx, dword [ecx]
push esi
call dword [edx]
mov ecx, dword [esp + 0x2a4]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00491511
mov esp, ebp
pop ebp
ret