Function at 0x423b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x29c
mov eax, dword [0x4b1780]
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 + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], ebx
cmp dword [esi + 0x14], 8
push edi
mov dword [esp + 0x1c], eax
jb 0x423b9e
mov eax, dword [esi]
jmp 0x423ba0
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 + 0x10], ebx
test edi, edi
je 0x423e17
lea ecx, [esp + 0x10]
call fcn.00424230
cmp edi, 0xffffffff
je 0x423beb
mov dword [esp + 0x10], edi
call fcn.00426030
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00426180
add esp, 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x423e17
cmp eax, 0xffffffff
je 0x423e17
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push 0
push ecx
push edi
push dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x423d29
cmp dword [esp + 0x14], edi
jne 0x423c2c
mov bl, 1
jmp 0x423f39
call fcn.004242d0
cmp eax, 1
jl 0x423cf5
lea eax, [esp + 0x274]
mov ebx, 0x30
push esi
push eax
call fcn.00428a60
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.0041f060
mov dword [esp + 0xdc], 0x413058
mov dword [esp + 0xe0], 0x29f
call esi
push 0x29f
push 0x413058
lea ecx, [esp + 0x40]
mov dword [esp + 0xec], eax
call fcn.0041ff70
lea eax, [esp + 0x274]
push eax
push 0x4130dc
push edi
push 0x4130ec
push dword [esp + 0x24]
lea eax, [esp + 0x54]
push 0x4130f8
push eax
call fcn.0041b870
add esp, 8
mov ecx, eax
call fcn.00420720
push eax
call fcn.0041b870
add esp, 8
mov ecx, eax
call fcn.004205e0
push eax
call fcn.0041b870
add esp, 8
push eax
call fcn.0041b5f0
add esp, 8
test bl, 0x20
je 0x423d06
lea ecx, [esp + 0x30]
and ebx, 0xffffffdf
call fcn.00420490
test bl, 0x10
je 0x423f37
cmp dword [esp + 0x288], 0x10
jb 0x423f37
push dword [esp + 0x274]
jmp 0x423f2f
call fcn.004242d0
cmp eax, 1
jl 0x423de0
lea eax, [esp + 0x28c]
mov ebx, 0xc
push esi
push eax
call fcn.00428a60
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.0041f060
mov dword [esp + 0x24c], 0x413058
mov dword [esp + 0x250], 0x29c
call esi
push 0x29c
push 0x413058
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x25c], eax
call fcn.0041ff70
push 0x4130c4
lea eax, [esp + 0x290]
push eax
lea eax, [esp + 0x1b8]
push 0x4130cc
push eax
call fcn.0041b870
add esp, 8
push eax
call fcn.0041b5f0
add esp, 8
push eax
call fcn.0041b870
add esp, 8
test bl, 8
je 0x423df4
lea ecx, [esp + 0x1a0]
and ebx, 0xfffffff7
call fcn.00420490
test bl, 4
je 0x423f37
cmp dword [esp + 0x2a0], 0x10
jb 0x423f37
push dword [esp + 0x28c]
jmp 0x423f2f
mov ecx, dword [0x4b7068]
test ecx, ecx
je 0x423e3d
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x413058
push eax
mov dword [esp + 0x30], 0x43
call fcn.004308d0
jmp 0x423e61
mov ecx, dword [0x4b7064]
lea eax, [esp + 0x20]
neg ecx
mov dword [esp + 0x18], 0xffffffff
cmp ecx, 0xffffffff
mov dword [esp + 0x20], ecx
lea edx, [esp + 0x18]
cmovle eax, edx
mov eax, dword [eax]
cmp eax, 1
jl 0x423f05
lea eax, [esp + 0x25c]
mov ebx, 3
push esi
push eax
call fcn.00428a60
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.0041f060
mov dword [esp + 0x194], 0x413058
mov dword [esp + 0x198], 0x291
call esi
push 0x291
push 0x413058
lea ecx, [esp + 0xf8]
mov dword [esp + 0x1a4], eax
call fcn.0041ff70
lea eax, [esp + 0x25c]
push eax
lea eax, [esp + 0xfc]
push 0x4130a8
push eax
call fcn.0041b870
add esp, 8
push eax
call fcn.0041b5f0
add esp, 8
test bl, 2
je 0x423f19
lea ecx, [esp + 0xe8]
and ebx, 0xfffffffd
call fcn.00420490
test bl, 1
je 0x423f37
cmp dword [esp + 0x270], 0x10
jb 0x423f37
push dword [esp + 0x25c]
call fcn.0048bc47
add esp, 4
xor bl, bl
mov eax, dword [esp + 0x10]
test eax, eax
je 0x423f8f
cmp eax, 0xffffffff
je 0x423f8f
call fcn.00426030
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
call fcn.00426250
mov edi, dword [esp + 0x20]
add esp, 0x10
call fcn.004263d0
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov byte [0x4b7094], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov byte [0x4b7094], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x2a4]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048f991
mov esp, ebp
pop ebp
ret