Function at 0x41d3f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x65c
mov eax, dword [0x4b9a40]
xor eax, esp
mov dword [esp + 0x654], eax
push ebx
push ebp
mov ebp, dword [esp + 0x66c]
push esi
mov ebx, ecx
or esi, 0xffffffff
push edi
cmp dword [ebx + 4], esi
je 0x41d420
mov edi, dword [ebx]
call fcn.0041cb10
mov edi, dword [esp + 0x670]
mov dword [ebx + 4], esi
mov esi, dword [ebx]
cmp edi, dword [esi + 4]
jl 0x41d43b
mov eax, 0x10000
jmp 0x41d6fa
cmp edi, dword [esi + 0x10]
jge 0x41d445
call fcn.0041c3f0
mov eax, dword [ebx]
cmp dword [eax + 0x10], edi
jge 0x41d49d
lea esp, [esp]
mov esi, dword [ebx]
test esi, esi
je 0x41d496
cmp dword [esi + 0x18], 0
je 0x41d496
mov eax, dword [esi + 0x10]
inc eax
cmp eax, dword [esi + 4]
je 0x41d496
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.0041bfa0
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov ecx, dword [ebx]
cmp dword [ecx + 0x10], edi
jl 0x41d450
lea edx, [esp + 0x20]
push edx
push edi
mov ecx, ebx
call fcn.0041cd30
test byte [esp + 0x22c], 0x10
movzx eax, word [ebp]
je 0x41d4f9
cmp ax, 0x2f
je 0x41d4d0
cmp ax, 0x5c
je 0x41d4d0
test ax, ax
je 0x41d4e2
cmp word [ebp + 2], 0x3a
jne 0x41d4e2
push ebp
push 0
call fcn.0041d2b0
add esp, 8
xor eax, eax
jmp 0x41d6fa
push ebp
add ebx, 0x244
push ebx
call fcn.0041d2b0
add esp, 8
xor eax, eax
jmp 0x41d6fa
mov edi, ebp
mov ecx, ebp
test ax, ax
je 0x41d520
movzx eax, ax
cmp ax, 0x2f
je 0x41d511
cmp ax, 0x5c
jne 0x41d514
lea edi, [ecx + 2]
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x41d505
lea edx, [esp + 0x250]
mov eax, ebp
sub edx, ebp
jmp 0x41d530
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41d530
cmp edi, ebp
jne 0x41d5b8
xor eax, eax
mov word [esp + 0x250], ax
push edi
lea eax, [esp + 0x254]
push eax
lea esi, [ebx + 0x244]
push esi
lea ecx, [esp + 0x464]
push str._s_s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea edx, [esp + 0x250]
push edx
push esi
call fcn.0041d2b0
add esp, 8
mov eax, dword [esp + 0x22c]
push 0
push eax
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x470]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41d627
mov eax, 0x200
jmp 0x41d6fa
mov ecx, edi
sub ecx, ebp
sar ecx, 1
xor edx, edx
mov word [esp + ecx*2 + 0x250], dx
mov ax, word [esp + 0x250]
cmp ax, 0x2f
je 0x41d5f4
cmp ax, 0x5c
je 0x41d5f4
test ax, ax
je 0x41d54d
cmp word [esp + 0x252], 0x3a
jne 0x41d54d
push edi
lea eax, [esp + 0x254]
push eax
lea ecx, [esp + 0x460]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x260]
push edx
push 0
call fcn.0041d2b0
add esp, 0x18
jmp 0x41d584
mov edx, dword [ebx + 0x23c]
mov eax, dword [ebx]
push edx
call fcn.0041c720
add esp, 4
cmp dword [ebx + 0x240], 0
jne 0x41d654
push 0x4000
call fcn.00441f5d
add esp, 4
mov dword [ebx + 0x240], eax
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x18], 0
mov ecx, dword [ebx + 0x240]
lea eax, [esp + 0x17]
push eax
mov eax, dword [ebx]
push ecx
mov ecx, 0x4000
call fcn.0041c8a0
mov esi, eax
add esp, 8
cmp esi, 0xffffff96
je 0x41d6b5
test esi, esi
jl 0x41d6ab
jle 0x41d6a0
mov eax, dword [ebx + 0x240]
push 0
lea edx, [esp + 0x20]
push edx
push esi
push eax
push edi
call ebp
test eax, eax
je 0x41d6bf
cmp byte [esp + 0x17], 0
jne 0x41d6c9
test esi, esi
jne 0x41d662
mov dword [esp + 0x18], 0x5000000
jmp 0x41d6e8
mov dword [esp + 0x18], 0x1000
jmp 0x41d6e8
mov dword [esp + 0x18], 0x400
jmp 0x41d6e8
lea ecx, [esp + 0x240]
push ecx
lea edx, [esp + 0x234]
push edx
lea eax, [esp + 0x240]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebx]
call fcn.0041cb10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x664]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00460ba5
add esp, 0x65c
ret 8