Function at 0x4ac0b4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x6d93a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp eax, 3
je 0x4ac0ee
cmp eax, 2
je 0x4ac0e5
cmp eax, 1
jne 0x4ac1bc
cmp eax, 3
jne 0x4ac1a0
mov ebx, dword [ebp + 8]
cmp ebx, dword [esi + 4]
je 0x4ac140
cmp dword [esi + 4], 0xffffffff
je 0x4ac104
push dword [esi]
call fcn.004aea34
pop ecx
mov eax, dword [esi]
or dword [esi + 4], 0xffffffff
cmp ebx, dword [eax + 4]
jge 0x4ac1bc
cmp dword [eax + 0x10], ebx
jle 0x4ac12d
push eax
call fcn.004aeabd
jmp 0x4ac127
push dword [esi]
call fcn.004aeafc
mov eax, dword [esi]
pop ecx
cmp dword [eax + 0x10], ebx
jl 0x4ac120
push dword [esi + 0x138]
push eax
call fcn.004aec06
pop ecx
pop ecx
mov dword [esi + 4], ebx
lea eax, [ebp - 0x339]
push eax
push dword [ebp + 0x10]
push edi
push dword [esi]
call fcn.004aeec2
mov edi, eax
add esp, 0x10
test edi, edi
jg 0x4ac167
push dword [esi]
call fcn.004aea34
or dword [esi + 4], 0xffffffff
pop ecx
cmp byte [ebp - 0x339], 0
jne 0x4ac1fd
test edi, edi
jle 0x4ac18e
mov eax, 0x600
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e48e6
leave
ret 0x10
cmp edi, 0xffffff96
mov eax, 0x5000000
mov ecx, 0x1000
cmove eax, ecx
jmp 0x4ac17d
cmp dword [esi + 4], 0xffffffff
je 0x4ac1ae
push dword [esi]
call fcn.004aea34
pop ecx
mov eax, dword [esi]
or dword [esi + 4], 0xffffffff
mov ebx, dword [ebp + 8]
cmp ebx, dword [eax + 4]
jl 0x4ac1c3
mov eax, 0x10000
jmp 0x4ac17d
cmp dword [eax + 0x10], ebx
jle 0x4ac1dd
push eax
call fcn.004aeabd
jmp 0x4ac1d7
push dword [esi]
call fcn.004aeafc
mov eax, dword [esi]
pop ecx
cmp dword [eax + 0x10], ebx
jl 0x4ac1d0
lea eax, [ebp - 0x338]
mov ecx, esi
push eax
push ebx
call fcn.004aba14
test byte [ebp - 0x230], 0x10
je 0x4ac22d
cmp dword [ebp + 0x14], 1
jne 0x4ac204
xor eax, eax
jmp 0x4ac17d
mov al, byte [edi]
cmp al, 0x2f
je 0x4ac220
cmp al, 0x5c
je 0x4ac220
test al, al
je 0x4ac218
cmp byte [edi + 1], 0x3a
je 0x4ac220
add esi, 0x140
jmp 0x4ac222
xor esi, esi
push edi
push esi
call fcn.004ab844
pop ecx
pop ecx
jmp 0x4ac1fd
xor ebx, ebx
cmp dword [ebp + 0x14], 1
je 0x4ac324
mov eax, edi
mov ecx, edi
mov dword [ebp - 0x340], eax
mov al, byte [edi]
jmp 0x4ac25b
cmp al, 0x2f
je 0x4ac24f
cmp al, 0x5c
jne 0x4ac258
lea eax, [ecx + 1]
mov dword [ebp - 0x340], eax
inc ecx
mov al, byte [ecx]
test al, al
jne 0x4ac247
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.005118e0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x340]
cmp ecx, edi
jne 0x4ac280
mov byte [ebp - 0x108], bl
jmp 0x4ac2b1
mov eax, ecx
sub eax, edi
cmp eax, 0x104
jae 0x4ac401
mov byte [ebp + eax - 0x108], bl
mov al, byte [ebp - 0x108]
cmp al, 0x2f
je 0x4ac2d7
cmp al, 0x5c
je 0x4ac2d7
test al, al
je 0x4ac2b1
cmp byte [ebp - 0x107], 0x3a
je 0x4ac2d7
push ecx
lea eax, [ebp - 0x108]
push eax
lea edi, [esi + 0x140]
push edi
lea eax, [ebp - 0x20c]
push 0x636aa8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x4ac2f6
push ecx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push 0x637794
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edi, ebx
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.004ab844
pop ecx
pop ecx
push ebx
push dword [ebp - 0x230]
lea eax, [ebp - 0x20c]
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4ac333
mov eax, 0x200
jmp 0x4ac17d
push dword [esi + 0x138]
push dword [esi]
call fcn.004aec06
pop ecx
pop ecx
cmp dword [esi + 0x13c], ebx
jne 0x4ac35b
push 0x4000
call fcn.004e48f7
pop ecx
mov dword [esi + 0x13c], eax
lea eax, [ebp - 0x339]
push eax
push 0x4000
push dword [esi + 0x13c]
push dword [esi]
call fcn.004aeec2
add esp, 0x10
mov dword [ebp - 0x340], eax
cmp eax, 0xffffff96
je 0x4ac3e0
test eax, eax
js 0x4ac3b4
jle 0x4ac3a8
push ebx
lea ecx, [ebp - 0x344]
push ecx
push eax
push dword [esi + 0x13c]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4ac3bb
mov eax, dword [ebp - 0x340]
cmp byte [ebp - 0x339], bl
jne 0x4ac3c2
test eax, eax
jne 0x4ac35b
mov ebx, 0x5000000
jmp 0x4ac3e5
mov ebx, 0x400
jmp 0x4ac3e5
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x224]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x4ac3e5
mov ebx, 0x1000
cmp dword [ebp + 0x14], 1
je 0x4ac3f2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi]
call fcn.004aea34
pop ecx
mov eax, ebx
jmp 0x4ac17d
call fcn.004e4ff6
int3