Function at 0x41e600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x650
mov eax, dword [0x4ea080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
test eax, eax
jne 0x41e637
mov eax, 0x10000
mov dword [0x4ebda4], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ef91
mov esp, ebp
pop ebp
ret
cmp dword [eax], 1
je 0x41e655
mov eax, 0x80000
mov dword [0x4ebda4], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ef91
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [eax + 4]
or esi, 0xffffffff
cmp dword [edi + 4], esi
je 0x41e66d
mov eax, dword [edi]
push eax
call fcn.0041c110
add esp, 4
mov eax, dword [edi]
mov dword [edi + 4], esi
mov esi, dword [ebp + 0xc]
cmp esi, dword [eax + 4]
jl 0x41e684
mov eax, 0x10000
jmp 0x41e95c
cmp esi, dword [eax + 0x10]
jge 0x41e692
push eax
call fcn.0041be70
add esp, 4
mov ecx, dword [edi]
cmp dword [ecx + 0x10], esi
jge 0x41e6f9
lea esp, [esp]
mov esi, dword [edi]
test esi, esi
je 0x41e6ed
cmp dword [esi + 0x18], 0
je 0x41e6ed
mov eax, dword [esi + 0x10]
inc eax
cmp eax, dword [esi + 4]
je 0x41e6ed
mov edx, dword [esi + 0x50]
add edx, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
push 0
push 0
push 0
push 0
push 0
mov dword [esi + 0x10], eax
push 0
lea edx, [edx + ecx + 0x2e]
add dword [esi + 0x14], edx
lea eax, [esi + 0x78]
push eax
lea ecx, [esi + 0x28]
push ecx
push esi
call fcn.0041bad0
add esp, 0x24
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov edx, dword [edi]
mov eax, dword [ebp + 0xc]
cmp dword [edx + 0x10], eax
jl 0x41e6a0
mov esi, eax
lea ecx, [ebp - 0x644]
push ecx
push esi
mov ecx, edi
call fcn.0041c280
mov edx, dword [ebp - 0x438]
shr edx, 4
test dl, 1
je 0x41e758
movzx eax, word [ebx]
cmp eax, 0x2f
je 0x41e72f
cmp eax, 0x5c
je 0x41e72f
test ax, ax
je 0x41e741
cmp word [ebx + 2], 0x3a
jne 0x41e741
push ebx
push 0
call fcn.0041c8f0
add esp, 8
xor eax, eax
jmp 0x41e95c
push ebx
add edi, 0x244
push edi
call fcn.0041c8f0
add esp, 8
xor eax, eax
jmp 0x41e95c
xor eax, eax
mov word [ebp - 0x414], ax
movzx eax, word [ebx]
mov esi, ebx
mov ecx, ebx
test ax, ax
je 0x41e78b
lea ecx, [ecx]
cmp ax, 0x2f
je 0x41e77c
cmp ax, 0x5c
jne 0x41e77f
lea esi, [ecx + 2]
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x41e770
push 0x104
push ebx
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.00490634
add esp, 0x10
cmp esi, ebx
jne 0x41e814
xor edx, edx
mov word [ebp - 0x20c], dx
push esi
lea edx, [ebp - 0x20c]
push edx
lea ebx, [edi + 0x244]
push ebx
lea eax, [ebp - 0x414]
push 0x4b43b0
push eax
call fcn.0041a500
lea ecx, [ebp - 0x20c]
push ecx
push ebx
call fcn.0041c8f0
add esp, 0x1c
mov edx, dword [ebp - 0x438]
push 0
push edx
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41e87d
mov eax, 0x200
jmp 0x41e95c
mov eax, esi
sub eax, ebx
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x20c], cx
mov ax, word [ebp - 0x20c]
cmp ax, 0x2f
je 0x41e84e
cmp ax, 0x5c
je 0x41e84e
test ax, ax
je 0x41e7b2
cmp word [ebp - 0x20a], 0x3a
jne 0x41e7b2
push esi
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x414]
push 0x4b43a4
push eax
call fcn.0041a500
lea ecx, [ebp - 0x20c]
push ecx
push 0
call fcn.0041c8f0
add esp, 0x18
jmp 0x41e7e2
mov ecx, dword [edi + 0x23c]
mov edx, dword [edi]
push ecx
push edx
call fcn.0041e080
add esp, 8
cmp dword [edi + 0x240], 0
jne 0x41e8ab
push 0x4000
call fcn.00425b55
add esp, 4
mov dword [edi + 0x240], eax
mov dword [ebp - 0x64c], 0
jmp 0x41e8c0
mov ecx, dword [edi + 0x240]
mov edx, dword [edi]
lea eax, [ebp - 0x645]
push eax
push 0x4000
push ecx
push edx
call fcn.0041e200
mov esi, eax
add esp, 0x10
cmp esi, 0xffffff96
je 0x41e972
test esi, esi
js 0x41e918
jle 0x41e90b
mov ecx, dword [edi + 0x240]
push 0
lea eax, [ebp - 0x650]
push eax
push esi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41e97e
cmp byte [ebp - 0x645], 0
jne 0x41e922
test esi, esi
jne 0x41e8c0
mov dword [ebp - 0x64c], 0x5000000
mov edx, dword [edi]
push edx
call fcn.0041c110
mov esi, dword [ebp - 0x64c]
add esp, 4
test esi, esi
jne 0x41e953
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x434]
push ecx
lea edx, [ebp - 0x42c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov dword [0x4ebda4], eax
pop ebx
call fcn.0048ef91
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x64c], 0x1000
jmp 0x41e922
mov dword [ebp - 0x64c], 0x400
jmp 0x41e922