Function at 0x423560
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 0x42359e
mov eax, dword [esi]
jmp 0x4235a0
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 0x423837
lea ecx, [esp + 0xc]
call fcn.00423b50
cmp edi, 0xffffffff
je 0x42360b
mov dword [esp + 0xc], edi
call fcn.004274b0
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x4b71f8]
mov dword [esp + 0x14], eax
test ecx, ecx
jne 0x4235f8
call fcn.004275c0
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 0x423837
cmp eax, 0xffffffff
je 0x423837
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 0x423749
cmp dword [esp + 0x18], edi
jne 0x42364c
mov bl, 1
jmp 0x423959
call fcn.00423bc0
cmp eax, 1
jl 0x423715
lea eax, [esp + 0x274]
mov ebx, 0x30
push esi
push eax
call fcn.00428060
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.0041ecd0
mov dword [esp + 0xdc], 0x412d28
mov dword [esp + 0xe0], 0x29f
call esi
push 0x29f
push 0x412d28
lea ecx, [esp + 0x40]
mov dword [esp + 0xec], eax
call fcn.0041f9c0
lea eax, [esp + 0x274]
push eax
push 0x412dac
push edi
push 0x412dbc
push dword [esp + 0x28]
lea eax, [esp + 0x54]
push 0x412dc8
push eax
call fcn.0041b6f0
add esp, 8
mov ecx, eax
call fcn.00420170
push eax
call fcn.0041b6f0
add esp, 8
mov ecx, eax
call fcn.00420030
push eax
call fcn.0041b6f0
add esp, 8
push eax
call fcn.0041b470
add esp, 8
test bl, 0x20
je 0x423726
lea ecx, [esp + 0x30]
and ebx, 0xffffffdf
call fcn.0041fee0
test bl, 0x10
je 0x423957
cmp dword [esp + 0x288], 0x10
jb 0x423957
push dword [esp + 0x274]
jmp 0x42394f
call fcn.00423bc0
cmp eax, 1
jl 0x423800
lea eax, [esp + 0x28c]
mov ebx, 0xc
push esi
push eax
call fcn.00428060
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.0041ecd0
mov dword [esp + 0x24c], 0x412d28
mov dword [esp + 0x250], 0x29c
call esi
push 0x29c
push 0x412d28
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x25c], eax
call fcn.0041f9c0
push 0x412d94
lea eax, [esp + 0x290]
push eax
lea eax, [esp + 0x1b8]
push 0x412d9c
push eax
call fcn.0041b6f0
add esp, 8
push eax
call fcn.0041b470
add esp, 8
push eax
call fcn.0041b6f0
add esp, 8
test bl, 8
je 0x423814
lea ecx, [esp + 0x1a0]
and ebx, 0xfffffff7
call fcn.0041fee0
test bl, 4
je 0x423957
cmp dword [esp + 0x2a0], 0x10
jb 0x423957
push dword [esp + 0x28c]
jmp 0x42394f
mov ecx, dword [0x4b715c]
test ecx, ecx
je 0x42385d
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x412d28
push eax
mov dword [esp + 0x30], 0x43
call fcn.004306d0
jmp 0x423881
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 0x423925
lea eax, [esp + 0x25c]
mov ebx, 3
push esi
push eax
call fcn.00428060
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.0041ecd0
mov dword [esp + 0x194], 0x412d28
mov dword [esp + 0x198], 0x291
call esi
push 0x291
push 0x412d28
lea ecx, [esp + 0xf8]
mov dword [esp + 0x1a4], eax
call fcn.0041f9c0
lea eax, [esp + 0x25c]
push eax
lea eax, [esp + 0xfc]
push 0x412d78
push eax
call fcn.0041b6f0
add esp, 8
push eax
call fcn.0041b470
add esp, 8
test bl, 2
je 0x423939
lea ecx, [esp + 0xe8]
and ebx, 0xfffffffd
call fcn.0041fee0
test bl, 1
je 0x423957
cmp dword [esp + 0x270], 0x10
jb 0x423957
push dword [esp + 0x25c]
call fcn.0048db5b
add esp, 4
xor bl, bl
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4239bb
cmp eax, 0xffffffff
je 0x4239bb
call fcn.004274b0
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 0x42398d
call fcn.004275c0
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 0x4239b6
call fcn.004275c0
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.004918a1
mov esp, ebp
pop ebp
ret