Function at 0x423cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x29c
mov eax, dword [0x4b0780]
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 0x423d0e
mov eax, dword [esi]
jmp 0x423d10
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 0x423fa7
lea ecx, [esp + 0xc]
call fcn.004245a0
cmp edi, 0xffffffff
je 0x423d7b
mov dword [esp + 0xc], edi
call fcn.00428510
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x4b6178]
mov dword [esp + 0x14], eax
test ecx, ecx
jne 0x423d68
call fcn.00428620
mov ecx, dword [0x4b6178]
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 0x423fa7
cmp eax, 0xffffffff
je 0x423fa7
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 0x423eb9
cmp dword [esp + 0x18], edi
jne 0x423dbc
mov bl, 1
jmp 0x4240c9
call fcn.00424610
cmp eax, 1
jl 0x423e85
lea eax, [esp + 0x274]
mov ebx, 0x30
push esi
push eax
call fcn.004293b0
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.0041f3a0
mov dword [esp + 0xdc], 0x4130a8
mov dword [esp + 0xe0], 0x2a3
call esi
push 0x2a3
push 0x4130a8
lea ecx, [esp + 0x40]
mov dword [esp + 0xec], eax
call fcn.00420090
lea eax, [esp + 0x274]
push eax
push 0x41312c
push edi
push 0x41313c
push dword [esp + 0x28]
lea eax, [esp + 0x54]
push 0x413148
push eax
call fcn.0041bbb0
add esp, 8
mov ecx, eax
call fcn.00420840
push eax
call fcn.0041bbb0
add esp, 8
mov ecx, eax
call fcn.00420700
push eax
call fcn.0041bbb0
add esp, 8
push eax
call fcn.0041b930
add esp, 8
test bl, 0x20
je 0x423e96
lea ecx, [esp + 0x30]
and ebx, 0xffffffdf
call fcn.004205b0
test bl, 0x10
je 0x4240c7
cmp dword [esp + 0x288], 0x10
jb 0x4240c7
push dword [esp + 0x274]
jmp 0x4240bf
call fcn.00424610
cmp eax, 1
jl 0x423f70
lea eax, [esp + 0x28c]
mov ebx, 0xc
push esi
push eax
call fcn.004293b0
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.0041f3a0
mov dword [esp + 0x24c], 0x4130a8
mov dword [esp + 0x250], 0x2a0
call esi
push 0x2a0
push 0x4130a8
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x25c], eax
call fcn.00420090
push 0x413114
lea eax, [esp + 0x290]
push eax
lea eax, [esp + 0x1b8]
push 0x41311c
push eax
call fcn.0041bbb0
add esp, 8
push eax
call fcn.0041b930
add esp, 8
push eax
call fcn.0041bbb0
add esp, 8
test bl, 8
je 0x423f84
lea ecx, [esp + 0x1a0]
and ebx, 0xfffffff7
call fcn.004205b0
test bl, 4
je 0x4240c7
cmp dword [esp + 0x2a0], 0x10
jb 0x4240c7
push dword [esp + 0x28c]
jmp 0x4240bf
mov ecx, dword [0x4b60dc]
test ecx, ecx
je 0x423fcd
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x4130a8
push eax
mov dword [esp + 0x30], 0x43
call fcn.00430e10
jmp 0x423ff1
mov ecx, dword [0x4b60d8]
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 0x424095
lea eax, [esp + 0x25c]
mov ebx, 3
push esi
push eax
call fcn.004293b0
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.0041f3a0
mov dword [esp + 0x194], 0x4130a8
mov dword [esp + 0x198], 0x295
call esi
push 0x295
push 0x4130a8
lea ecx, [esp + 0xf8]
mov dword [esp + 0x1a4], eax
call fcn.00420090
lea eax, [esp + 0x25c]
push eax
lea eax, [esp + 0xfc]
push 0x4130f8
push eax
call fcn.0041bbb0
add esp, 8
push eax
call fcn.0041b930
add esp, 8
test bl, 2
je 0x4240a9
lea ecx, [esp + 0xe8]
and ebx, 0xfffffffd
call fcn.004205b0
test bl, 1
je 0x4240c7
cmp dword [esp + 0x270], 0x10
jb 0x4240c7
push dword [esp + 0x25c]
call fcn.0048cf69
add esp, 4
xor bl, bl
mov eax, dword [esp + 0xc]
test eax, eax
je 0x42412b
cmp eax, 0xffffffff
je 0x42412b
call fcn.00428510
mov edi, dword [ebp + 4]
mov esi, eax
mov ecx, dword [0x4b6178]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
test ecx, ecx
jne 0x4240fd
call fcn.00428620
mov ecx, dword [0x4b6178]
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 [0x4b6178]
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x424126
call fcn.00428620
mov ecx, dword [0x4b6178]
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.00490c9e
mov esp, ebp
pop ebp
ret