Function at 0x41e1e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x340
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x360]
mov ebx, ecx
cmp edi, 3
je 0x41e21c
cmp edi, 2
je 0x41e319
cmp edi, 1
je 0x41e319
pop edi
pop esi
pop ebp
mov eax, 0x10000
pop ebx
add esp, 0x340
ret 0x10
mov eax, dword [ebx + 4]
mov esi, dword [esp + 0x354]
cmp esi, eax
je 0x41e294
cmp eax, 0xffffffff
je 0x41e23a
mov eax, dword [ebx]
push eax
call fcn.0041d940
add esp, 4
mov eax, dword [ebx]
mov dword [ebx + 4], 0xffffffff
cmp esi, dword [eax + 4]
jl 0x41e25a
pop edi
pop esi
pop ebp
mov eax, 0x10000
pop ebx
add esp, 0x340
ret 0x10
cmp esi, dword [eax + 0x10]
jge 0x41e268
push eax
call fcn.0041d200
add esp, 4
mov eax, dword [ebx]
cmp dword [eax + 0x10], esi
jge 0x41e27f
push eax
call fcn.0041d250
mov eax, dword [ebx]
add esp, 4
cmp dword [eax + 0x10], esi
jl 0x41e26f
mov ecx, dword [ebx + 0x138]
mov edx, dword [ebx]
push ecx
push edx
call fcn.0041d4d0
add esp, 8
mov dword [ebx + 4], esi
mov ecx, dword [esp + 0x35c]
mov edx, dword [esp + 0x358]
lea eax, [esp + 0x13]
push eax
mov eax, dword [ebx]
push ecx
push edx
push eax
call fcn.0041d680
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x41e2cc
mov ecx, dword [ebx]
push ecx
call fcn.0041d940
add esp, 4
mov dword [ebx + 4], 0xffffffff
mov al, byte [esp + 0x13]
test al, al
je 0x41e2e3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x340
ret 0x10
test esi, esi
jle 0x41e2f9
pop edi
pop esi
pop ebp
mov eax, 0x600
pop ebx
add esp, 0x340
ret 0x10
mov eax, esi
pop edi
sub eax, 0xffffff96
pop esi
neg eax
sbb eax, eax
pop ebp
and eax, 0x4fff000
pop ebx
add eax, 0x1000
add esp, 0x340
ret 0x10
mov eax, dword [ebx + 4]
or esi, 0xffffffff
cmp eax, esi
je 0x41e32e
mov edx, dword [ebx]
push edx
call fcn.0041d940
add esp, 4
mov eax, dword [ebx]
mov dword [ebx + 4], esi
mov esi, dword [esp + 0x354]
cmp esi, dword [eax + 4]
jl 0x41e351
pop edi
pop esi
pop ebp
mov eax, 0x10000
pop ebx
add esp, 0x340
ret 0x10
cmp esi, dword [eax + 0x10]
jge 0x41e35f
push eax
call fcn.0041d200
add esp, 4
mov eax, dword [ebx]
cmp dword [eax + 0x10], esi
jge 0x41e376
push eax
call fcn.0041d250
mov eax, dword [ebx]
add esp, 4
cmp dword [eax + 0x10], esi
jl 0x41e366
lea eax, [esp + 0x120]
mov ecx, ebx
push eax
push esi
call fcn.0041db80
test byte [esp + 0x228], 0x10
je 0x41e3f8
cmp edi, 1
jne 0x41e3a4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x340
ret 0x10
mov ecx, dword [esp + 0x358]
mov al, byte [ecx]
cmp al, 0x2f
je 0x41e3bf
cmp al, 0x5c
je 0x41e3bf
test al, al
je 0x41e3d9
cmp byte [ecx + 1], 0x3a
jne 0x41e3d9
push ecx
push 0
call fcn.0041e0d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x340
ret 0x10
add ebx, 0x140
push ecx
push ebx
call fcn.0041e0d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x340
ret 0x10
cmp edi, 1
jne 0x41e409
mov edi, dword [esp + 0x358]
jmp 0x41e4b2
mov edx, dword [esp + 0x358]
mov ebp, edx
mov esi, edx
mov al, byte [edx]
test al, al
je 0x41e42d
cmp al, 0x2f
je 0x41e422
cmp al, 0x5c
jne 0x41e425
lea ebp, [esi + 1]
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x41e41a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp ebp, edx
rep movsb byte es:[edi], byte [esi]
jne 0x41e4c9
mov byte [esp + 0x1c], 0
lea edx, [esp + 0x1c]
lea esi, [ebx + 0x140]
push ebp
push edx
push esi
lea eax, [esp + 0x258]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x30]
push ecx
push esi
call fcn.0041e0d0
add esp, 0x1c
mov edx, dword [esp + 0x228]
push 0
push edx
push 2
push 0
push 0
lea eax, [esp + 0x260]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41e51e
pop edi
pop esi
pop ebp
mov eax, 0x200
pop ebx
add esp, 0x340
ret 0x10
mov ecx, ebp
sub ecx, edx
mov byte [esp + ecx + 0x1c], 0
mov al, byte [esp + 0x1c]
cmp al, 0x2f
je 0x41e4f1
cmp al, 0x5c
je 0x41e4f1
test al, al
je 0x41e45f
cmp byte [esp + 0x1d], 0x3a
jne 0x41e45f
lea edx, [esp + 0x1c]
push ebp
push edx
lea eax, [esp + 0x254]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x2c]
push ecx
push 0
call fcn.0041e0d0
add esp, 0x18
jmp 0x41e48d
mov ecx, dword [ebx + 0x138]
mov edx, dword [ebx]
push ecx
push edx
call fcn.0041d4d0
mov eax, dword [ebx + 0x13c]
add esp, 8
test eax, eax
jne 0x41e54d
push 0x4000
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebx + 0x13c], eax
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x14], 0
mov ecx, dword [ebx + 0x13c]
mov edx, dword [ebx]
lea eax, [esp + 0x13]
push eax
push 0x4000
push ecx
push edx
call fcn.0041d680
mov esi, eax
add esp, 0x10
cmp esi, 0xffffff96
je 0x41e5a8
test esi, esi
jl 0x41e5bc
jle 0x41e59a
mov ecx, dword [ebx + 0x13c]
lea eax, [esp + 0x18]
push 0
push eax
push esi
push ecx
push edi
call ebp
test eax, eax
je 0x41e5b2
mov al, byte [esp + 0x13]
test al, al
jne 0x41e5c6
test esi, esi
je 0x41e5bc
jmp 0x41e55b
mov dword [esp + 0x14], 0x1000
jmp 0x41e5e5
mov dword [esp + 0x14], 0x400
jmp 0x41e5e5
mov dword [esp + 0x14], 0x5000000
jmp 0x41e5e5
lea edx, [esp + 0x23c]
lea eax, [esp + 0x22c]
push edx
lea ecx, [esp + 0x238]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [esp + 0x360], 1
je 0x41e5f6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebx]
push edx
call fcn.0041d940
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x340
ret 0x10