Function at 0x41e310
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x65c
mov eax, dword [0x47dac0]
xor eax, esp
mov dword [esp + 0x654], eax
push ebx
push ebp
mov ebp, dword [esp + 0x668]
push esi
or esi, 0xffffffff
cmp dword [ebp + 4], esi
push edi
mov ebx, ecx
je 0x41e341
mov edi, dword [ebp]
call fcn.0041da60
mov edi, dword [esp + 0x674]
mov dword [ebp + 4], esi
mov esi, dword [ebp]
cmp edi, dword [esi + 4]
jl 0x41e35d
mov eax, 0x10000
jmp 0x41e61a
cmp edi, dword [esi + 0x10]
jge 0x41e367
call fcn.0041d340
mov eax, dword [ebp]
cmp dword [eax + 0x10], edi
jge 0x41e3c3
nop
mov esi, dword [ebp]
test esi, esi
je 0x41e3bb
cmp dword [esi + 0x18], 0
je 0x41e3bb
mov eax, dword [esi + 0x10]
add eax, 1
cmp eax, dword [esi + 4]
je 0x41e3bb
mov ecx, dword [esi + 0x50]
add ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
push 0
lea ecx, [ecx + edx + 0x2e]
add dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
push 0
lea edx, [esi + 0x78]
push edx
lea eax, [esi + 0x28]
push eax
mov eax, esi
call fcn.0041cef0
add esp, 0x10
neg eax
sbb eax, eax
add eax, 1
mov dword [esi + 0x18], eax
mov ecx, dword [ebp]
cmp dword [ecx + 0x10], edi
jl 0x41e370
lea edx, [esp + 0x20]
push edx
push edi
mov ecx, ebp
call fcn.0041dc70
test byte [esp + 0x22c], 0x10
movzx eax, word [ebx]
je 0x41e41e
cmp ax, 0x2f
je 0x41e3f5
cmp ax, 0x5c
je 0x41e3f5
test ax, ax
je 0x41e407
cmp word [ebx + 2], 0x3a
jne 0x41e407
push ebx
push 0
call fcn.0041e1d0
add esp, 8
xor eax, eax
jmp 0x41e61a
push ebx
add ebp, 0x244
push ebp
call fcn.0041e1d0
add esp, 8
xor eax, eax
jmp 0x41e61a
xor esi, esi
cmp ax, si
mov edi, ebx
mov ecx, ebx
je 0x41e44b
movzx eax, ax
lea esp, [esp]
cmp ax, 0x2f
je 0x41e43c
cmp ax, 0x5c
jne 0x41e43f
lea edi, [ecx + 2]
movzx eax, word [ecx + 2]
add ecx, 2
cmp ax, si
jne 0x41e430
lea edx, [esp + 0x250]
mov eax, ebx
sub edx, ebx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x41e456
cmp edi, ebx
jne 0x41e4db
mov word [esp + 0x250], si
push edi
lea ecx, [esp + 0x254]
push ecx
lea esi, [ebp + 0x244]
push esi
lea edx, [esp + 0x464]
push str._s_s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [esp + 0x250]
push eax
push esi
call fcn.0041e1d0
add esp, 8
xor esi, esi
mov ecx, dword [esp + 0x22c]
push esi
push ecx
push 2
push esi
push esi
push 0x40000000
lea edx, [esp + 0x470]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41e547
mov eax, 0x200
jmp 0x41e61a
mov eax, edi
sub eax, ebx
sar eax, 1
mov word [esp + eax*2 + 0x250], si
mov ax, word [esp + 0x250]
cmp ax, 0x2f
je 0x41e515
cmp ax, 0x5c
je 0x41e515
cmp ax, si
je 0x41e471
cmp word [esp + 0x252], 0x3a
jne 0x41e471
push edi
lea ecx, [esp + 0x254]
push ecx
lea edx, [esp + 0x460]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x260]
push eax
push esi
call fcn.0041e1d0
add esp, 0x18
jmp 0x41e4aa
mov eax, dword [ebp + 0x23c]
push eax
mov eax, dword [ebp]
call fcn.0041d670
add esp, 4
cmp dword [ebp + 0x240], esi
jne 0x41e574
push 0x4000
call fcn.0042684d
add esp, 4
mov dword [ebp + 0x240], eax
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x18], esi
mov edi, edi
mov edx, dword [ebp + 0x240]
mov eax, dword [ebp]
lea ecx, [esp + 0x17]
push ecx
push edx
mov ecx, 0x4000
call fcn.0041d7f0
mov esi, eax
add esp, 8
cmp esi, 0xffffff96
je 0x41e5d4
test esi, esi
jl 0x41e5ca
jle 0x41e5bf
mov ecx, dword [ebp + 0x240]
push 0
lea eax, [esp + 0x20]
push eax
push esi
push ecx
push edi
call ebx
test eax, eax
je 0x41e5de
cmp byte [esp + 0x17], 0
jne 0x41e5e8
test esi, esi
jne 0x41e580
mov dword [esp + 0x18], 0x5000000
jmp 0x41e607
mov dword [esp + 0x18], 0x1000
jmp 0x41e607
mov dword [esp + 0x18], 0x400
jmp 0x41e607
lea edx, [esp + 0x240]
push edx
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x240]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp]
call fcn.0041da60
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x664]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00448969
add esp, 0x65c
ret 8