Function at 0x41d6e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
mov eax, dword [0x431074]
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 0x41d711
cmp ecx, 2
je 0x41d711
cmp ecx, 1
jne 0x41d81b
mov eax, dword [edi + 4]
cmp ecx, 3
jne 0x41d7fb
mov esi, dword [ebp + 8]
cmp esi, eax
je 0x41d783
cmp eax, 0xffffffff
je 0x41d733
push dword [edi]
call fcn.00420190
add esp, 4
mov eax, dword [edi]
mov dword [edi + 4], 0xffffffff
cmp esi, dword [eax + 4]
jge 0x41d81b
cmp dword [eax + 0x10], esi
jle 0x41d758
push eax
call fcn.00420210
mov eax, dword [edi]
add esp, 4
cmp dword [eax + 0x10], esi
jge 0x41d771
nop word [eax + eax]
push dword [edi]
call fcn.00420260
mov eax, dword [edi]
add esp, 4
cmp dword [eax + 0x10], esi
jl 0x41d760
push dword [edi + 0x138]
push eax
call fcn.004202d0
add esp, 8
mov dword [edi + 4], esi
lea eax, [ebp - 0x339]
push eax
push dword [ebp + 0x10]
push ebx
push dword [edi]
call fcn.00420610
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x41d7af
push dword [edi]
call fcn.00420190
add esp, 4
mov dword [edi + 4], 0xffffffff
cmp byte [ebp - 0x339], 0
jne 0x41d90f
test esi, esi
jle 0x41d7d8
pop edi
pop esi
mov eax, 0x600
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421e64
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.00421e64
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 0xffffffff
je 0x41d80a
push dword [edi]
call fcn.00420190
add esp, 4
mov esi, dword [edi]
mov ecx, dword [ebp + 8]
mov dword [edi + 4], 0xffffffff
cmp ecx, dword [esi + 4]
jl 0x41d833
pop edi
pop esi
mov eax, 0x10000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421e64
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esi + 0x10], ecx
jle 0x41d849
push esi
call fcn.00420210
mov esi, dword [edi]
add esp, 4
mov ecx, dword [ebp + 8]
cmp dword [esi + 0x10], ecx
jge 0x41d8aa
nop dword [eax + eax]
mov eax, esi
test esi, esi
je 0x41d8a3
cmp dword [esi + 0x18], 0
je 0x41d8a3
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x41d8a3
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.00420ad0
mov ecx, dword [ebp + 8]
add esp, 0x24
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov eax, dword [edi]
mov esi, eax
cmp dword [eax + 0x10], ecx
jl 0x41d850
lea eax, [ebp - 0x338]
push eax
push ecx
mov ecx, edi
call fcn.0041cc10
test byte [ebp - 0x230], 0x10
mov eax, dword [ebp + 0x14]
je 0x41d924
cmp eax, 1
je 0x41d90f
mov al, byte [ebx]
cmp al, 0x2f
je 0x41d903
cmp al, 0x5c
je 0x41d903
test al, al
je 0x41d8de
cmp byte [ebx + 1], 0x3a
je 0x41d903
add edi, 0x140
push ebx
push edi
call fcn.0041cb00
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421e64
mov esp, ebp
pop ebp
ret 0x10
xor edi, edi
push ebx
push edi
call fcn.0041cb00
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421e64
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 1
je 0x41da16
mov al, byte [ebx]
mov edx, ebx
mov ecx, ebx
test al, al
je 0x41d94a
cmp al, 0x2f
je 0x41d93f
cmp al, 0x5c
jne 0x41d942
lea edx, [ecx + 1]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x41d937
lea esi, [ebp - 0x108]
mov ecx, ebx
sub esi, ebx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x41d954
cmp edx, ebx
jne 0x41d96d
mov byte [ebp - 0x108], al
jmp 0x41d99f
mov eax, edx
sub eax, ebx
cmp eax, 0x104
jae 0x41db10
mov byte [ebp + eax - 0x108], 0
mov al, byte [ebp - 0x108]
cmp al, 0x2f
je 0x41d9c5
cmp al, 0x5c
je 0x41d9c5
test al, al
je 0x41d99f
cmp byte [ebp - 0x107], 0x3a
je 0x41d9c5
push edx
lea eax, [ebp - 0x108]
push eax
lea esi, [edi + 0x140]
push esi
lea eax, [ebp - 0x20c]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x41d9e4
push edx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
xor esi, esi
lea eax, [ebp - 0x108]
push eax
push esi
call fcn.0041cb00
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 0x41da33
pop edi
pop esi
mov eax, 0x200
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421e64
mov esp, ebp
pop ebp
ret 0x10
push dword [edi + 0x138]
push dword [edi]
call fcn.004202d0
add esp, 8
cmp dword [edi + 0x13c], 0
jne 0x41da60
push 0x4000
call sub.mfc140.dll_Ordinal_265
add esp, 4
mov dword [edi + 0x13c], eax
nop
lea eax, [ebp - 0x339]
push eax
push 0x4000
push dword [edi + 0x13c]
push dword [edi]
call fcn.00420610
mov esi, eax
add esp, 0x10
cmp esi, 0xffffff96
je 0x41dadf
test esi, esi
js 0x41dab1
jle 0x41daa4
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 0x41dab8
cmp byte [ebp - 0x339], 0
jne 0x41dabf
test esi, esi
jne 0x41da60
mov esi, 0x5000000
jmp 0x41dae4
mov esi, 0x400
jmp 0x41dae4
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 0x41dae4
mov esi, 0x1000
cmp dword [ebp + 0x14], 1
je 0x41daf1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi]
call fcn.00420190
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00421e64
mov esp, ebp
pop ebp
ret 0x10
call fcn.004225fd
int3