Function at 0x41be20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
mov eax, dword [0x60aca0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x14]
cmp ecx, 3
je 0x41be8c
cmp ecx, 2
je 0x41be8c
cmp ecx, 1
jne 0x41be74
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x41be5f
push dword [edi]
call fcn.0041ea70
add esp, 4
mov esi, dword [edi]
mov ecx, dword [ebp + 8]
mov dword [edi + 4], 0xffffffff
cmp ecx, dword [esi + 4]
jl 0x41bfb7
pop edi
pop esi
mov eax, 0x10000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dcc5c
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [edi + 4]
cmp ecx, 3
jne 0x41be50
mov esi, dword [ebp + 8]
cmp esi, eax
je 0x41bf3f
cmp eax, 0xffffffff
je 0x41beae
push dword [edi]
call fcn.0041ea70
add esp, 4
mov eax, dword [edi]
mov dword [edi + 4], 0xffffffff
cmp esi, dword [eax + 4]
jge 0x41be74
cmp esi, dword [eax + 0x10]
jge 0x41beca
push eax
call fcn.0041eaf0
add esp, 4
mov esi, dword [edi]
mov ecx, dword [ebp + 8]
cmp dword [esi + 0x10], ecx
jge 0x41bf2a
test esi, esi
je 0x41bf23
cmp dword [esi + 0x18], 0
je 0x41bf23
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x41bf23
mov ecx, dword [esi + 0x50]
mov eax, dword [esi + 0x48]
add ecx, 0x2e
add ecx, dword [esi + 0x4c]
push 0
push 0
push 0
push 0
add eax, ecx
mov dword [esi + 0x10], edx
add dword [esi + 0x14], eax
lea eax, [esi + 0x78]
push 0
push 0
push eax
lea eax, [esi + 0x28]
push eax
push esi
call fcn.0041f5e0
mov ecx, dword [ebp + 8]
add esp, 0x24
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov esi, dword [edi]
cmp dword [esi + 0x10], ecx
jl 0x41bed4
push dword [edi + 0x138]
push esi
call fcn.0041ed70
mov eax, dword [ebp + 8]
add esp, 8
mov dword [edi + 4], eax
lea eax, [ebp - 0x339]
push eax
push dword [ebp + 0x10]
push ebx
push dword [edi]
call fcn.0041f110
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x41bf6b
push dword [edi]
call fcn.0041ea70
add esp, 4
mov dword [edi + 4], 0xffffffff
cmp byte [ebp - 0x339], 0
jne 0x41c0a5
test esi, esi
jle 0x41bf94
pop edi
pop esi
mov eax, 0x600
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dcc5c
mov esp, ebp
pop ebp
ret 0x10
pop edi
cmp esi, 0xffffff96
mov eax, 0x5000000
mov ecx, 0x1000
pop esi
cmove eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dcc5c
mov esp, ebp
pop ebp
ret 0x10
cmp ecx, dword [esi + 0x10]
jge 0x41bff5
test esi, esi
je 0x41bff5
mov eax, dword [esi + 0x24]
push 0
push 0
push 0
push 0
push 0
mov dword [esi + 0x14], eax
lea eax, [esi + 0x78]
push 0
push eax
lea eax, [esi + 0x28]
mov dword [esi + 0x10], 0
push eax
push esi
call fcn.0041f5e0
mov ecx, dword [ebp + 8]
add esp, 0x24
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov esi, dword [edi]
cmp dword [esi + 0x10], ecx
jge 0x41c056
nop dword [eax]
test esi, esi
je 0x41c04f
cmp dword [esi + 0x18], 0
je 0x41c04f
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x41c04f
mov ecx, dword [esi + 0x50]
mov eax, dword [esi + 0x48]
add ecx, 0x2e
add ecx, dword [esi + 0x4c]
push 0
push 0
push 0
push 0
add eax, ecx
mov dword [esi + 0x10], edx
add dword [esi + 0x14], eax
lea eax, [esi + 0x78]
push 0
push 0
push eax
lea eax, [esi + 0x28]
push eax
push esi
call fcn.0041f5e0
mov ecx, dword [ebp + 8]
add esp, 0x24
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov esi, dword [edi]
cmp dword [esi + 0x10], ecx
jl 0x41c000
lea eax, [ebp - 0x338]
push eax
push ecx
mov ecx, edi
call fcn.0041b2e0
test byte [ebp - 0x230], 0x10
je 0x41c0ba
cmp dword [ebp + 0x14], 1
je 0x41c0a5
mov al, byte [ebx]
cmp al, 0x2f
je 0x41c08c
cmp al, 0x5c
je 0x41c08c
test al, al
je 0x41c088
cmp byte [ebx + 1], 0x3a
je 0x41c08c
xor dl, dl
jmp 0x41c08e
mov dl, 1
xor ecx, ecx
lea eax, [edi + 0x140]
test dl, dl
push ebx
cmove ecx, eax
push ecx
call fcn.0041b0c0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dcc5c
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x14], 1
je 0x41c1b3
mov cl, byte [ebx]
mov esi, ebx
mov eax, ebx
test cl, cl
je 0x41c0e8
nop
cmp cl, 0x2f
je 0x41c0dd
cmp cl, 0x5c
je 0x41c0dd
inc eax
jmp 0x41c0e2
lea esi, [eax + 1]
mov eax, esi
mov cl, byte [eax]
test cl, cl
jne 0x41c0d0
push ebx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004e2189
add esp, 0xc
cmp esi, ebx
jne 0x41c10a
mov byte [ebp - 0x108], 0
jmp 0x41c13c
mov eax, esi
sub eax, ebx
cmp eax, 0x104
jae 0x41c2b0
mov byte [ebp + eax - 0x108], 0
mov al, byte [ebp - 0x108]
cmp al, 0x2f
je 0x41c162
cmp al, 0x5c
je 0x41c162
test al, al
je 0x41c13c
cmp byte [ebp - 0x107], 0x3a
je 0x41c162
push esi
lea eax, [ebp - 0x108]
push eax
lea ebx, [edi + 0x140]
push ebx
lea eax, [ebp - 0x20c]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x41c181
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push 0x583250
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
xor ebx, ebx
lea eax, [ebp - 0x108]
push eax
push ebx
call fcn.0041b0c0
add esp, 8
lea eax, [ebp - 0x20c]
push 0
push dword [ebp - 0x230]
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41c1d0
pop edi
pop esi
mov eax, 0x200
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dcc5c
mov esp, ebp
pop ebp
ret 0x10
push dword [edi + 0x138]
push dword [edi]
call fcn.0041ed70
add esp, 8
cmp dword [edi + 0x13c], 0
jne 0x41c200
push 0x4000
call fcn.004dd5cd
add esp, 4
mov dword [edi + 0x13c], eax
nop dword [eax]
lea eax, [ebp - 0x339]
push eax
push 0x4000
push dword [edi + 0x13c]
push dword [edi]
call fcn.0041f110
mov esi, eax
add esp, 0x10
cmp esi, 0xffffff96
je 0x41c27f
test esi, esi
js 0x41c251
jle 0x41c244
push 0
lea eax, [ebp - 0x340]
push eax
push esi
push dword [edi + 0x13c]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c258
cmp byte [ebp - 0x339], 0
jne 0x41c25f
test esi, esi
jne 0x41c200
mov esi, 0x5000000
jmp 0x41c284
mov esi, 0x400
jmp 0x41c284
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x224]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor esi, esi
jmp 0x41c284
mov esi, 0x1000
cmp dword [ebp + 0x14], 1
je 0x41c291
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi]
call fcn.0041ea70
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004dcc5c
mov esp, ebp
pop ebp
ret 0x10
call fcn.004dd0ee
int3