Function at 0x423d60
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a4370
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x50], eax
cmp dword [esp + 0x58], 7
jge 0x423da9
mov eax, dword [esi]
push eax
push 0x4b6894
push 1
push eax
push 0x4cae18
call fcn.00441210
add esp, 0x14
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
push eax
call edi
mov ecx, dword [esi + 8]
mov ebp, eax
push ecx
call edi
mov edx, dword [esi + 0xc]
mov ebx, eax
push edx
call edi
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0x10]
push eax
call edi
mov edi, dword [esp + 0x6c]
add esp, 0x10
test edi, edi
mov dword [esp + 0x14], eax
jle 0x423dea
test eax, eax
jle 0x423dea
test ebp, ebp
jl 0x423dea
test ebx, ebx
jge 0x423e12
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
mov eax, dword [esi]
push ecx
mov ecx, dword [esi + 8]
push edx
mov edx, dword [esi + 4]
push ecx
push edx
push eax
push 0x4b6864
push 1
push eax
push 0x4cae18
call fcn.00441210
add esp, 0x24
mov eax, dword [esp + 0x58]
cmp eax, 7
jne 0x423e2e
mov ecx, dword [esi + 0x14]
mov edx, dword [esi]
lea eax, [esi + 0x18]
push eax
push 0
push 0
push 0
push ecx
push edx
jmp 0x423e43
mov edx, dword [esi + 0x1c]
lea ecx, [esi + 0x20]
add eax, 0xfffffff8
push ecx
mov ecx, dword [esi]
push eax
mov eax, dword [esi + 0x14]
push 0
push edx
push eax
push ecx
call fcn.00407ef0
add esp, 0x18
lea ecx, [esp + 0x18]
call fcn.0046a2d0
mov edx, dword [esi + 0x14]
lea ecx, [esp + 0x18]
push edx
mov byte [esp + 0x54], 1
call fcn.00469b10
test al, al
jge 0x423e80
mov eax, dword [esi + 0x14]
mov ecx, dword [esi]
push eax
push 1
push ecx
push 0x4cae78
call fcn.00441210
add esp, 0x10
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push edx
call fcn.00469ce0
test al, al
jge 0x423ead
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push 0x4b6850
push 1
push ecx
push 0x4cae4c
call fcn.00441210
add esp, 0x14
mov eax, dword [esp + 0x20]
cmp ebp, eax
jge 0x423ebd
mov ecx, dword [esp + 0x24]
cmp ebx, ecx
jl 0x423ee0
mov edx, dword [esi]
push eax
push eax
push ebx
push ebp
push 0x4b681c
push 1
push edx
push 0x4cae18
call fcn.00441210
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
add esp, 0x20
mov edx, eax
sub edx, ebp
cmp edi, edx
jl 0x423eec
mov dword [esp + 0x5c], edx
mov edi, dword [esp + 0x14]
mov edx, ecx
sub edx, ebx
cmp edi, edx
jl 0x423efa
mov edi, edx
mov edx, dword [esp + 0x18]
push edx
push ecx
push eax
call fcn.0046a4f0
mov ecx, dword [esp + 0x68]
push edi
push ecx
push ebx
push ebp
push eax
movsx eax, byte [esp + 0x38]
cdq
and edx, 7
add eax, edx
mov edx, dword [esp + 0x4c]
sar eax, 3
push eax
push edx
call fcn.00407f20
add esp, 0x28
mov ebp, eax
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0x10]
push eax
call fcn.00443000
mov ecx, dword [esp + 0x10]
push 0x4b215c
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x423f74
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 1
push ebp
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
call fcn.00407f60
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 0
call fcn.0046a420
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
test eax, eax
mov dword [esp + 0x44], 0xffffffff
pop ebx
je 0x423fad
push eax
call fcn.00442aa0
add esp, 4
mov ecx, dword [esp + 0x38]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x44
ret