Function at 0x41633a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x437084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, edx
cmp dword [edi + 4], 0xffffffff
mov ebx, ecx
mov dword [ebp - 0x344], edi
mov dword [ebp - 0x340], eax
je 0x416371
push dword [edi]
call fcn.00415bea
pop ecx
mov esi, dword [edi]
or dword [edi + 4], 0xffffffff
cmp ebx, dword [esi + 4]
jl 0x416386
mov eax, 0x10000
jmp 0x4165d2
cmp ebx, dword [esi + 0x10]
jge 0x416399
call fcn.0041563a
jmp 0x416399
mov esi, dword [edi]
call fcn.0041566c
mov eax, dword [edi]
cmp dword [eax + 0x10], ebx
jl 0x416392
push ebx
lea ebx, [ebp - 0x338]
mov ecx, edi
call fcn.00415d85
test byte [ebp - 0x230], 0x10
je 0x4163eb
mov ecx, dword [ebp - 0x340]
mov al, byte [ecx]
cmp al, 0x2f
je 0x4163d1
cmp al, 0x5c
je 0x4163d1
test al, al
je 0x4163d6
cmp byte [ecx + 1], 0x3a
jne 0x4163d6
push ecx
push 0
jmp 0x4163de
push ecx
add edi, 0x140
push edi
call fcn.0041623f
pop ecx
xor eax, eax
jmp 0x4165d1
mov eax, dword [ebp - 0x340]
mov cl, byte [eax]
mov ebx, eax
mov edx, eax
jmp 0x416409
cmp cl, 0x2f
je 0x416403
cmp cl, 0x5c
jne 0x416406
lea ebx, [edx + 1]
inc edx
mov cl, byte [edx]
test cl, cl
jne 0x4163f9
lea esi, [ebp - 0x108]
mov ecx, eax
sub esi, eax
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x416417
cmp ebx, eax
jne 0x416490
mov byte [ebp - 0x108], dl
push ebx
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]
lea eax, [ebp - 0x108]
push eax
push esi
call fcn.0041623f
add esp, 0x1c
xor ebx, ebx
push ebx
push dword [ebp - 0x230]
lea eax, [ebp - 0x20c]
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x340], eax
cmp eax, 0xffffffff
jne 0x4164f9
mov eax, 0x200
jmp 0x4165d2
mov ecx, ebx
sub ecx, eax
mov byte [ebp + ecx - 0x108], 0
cmp byte [ebp - 0x108], 0x2f
je 0x4164c8
cmp byte [ebp - 0x108], 0x5c
je 0x4164c8
cmp byte [ebp - 0x108], 0
je 0x41642b
cmp byte [ebp - 0x107], 0x3a
jne 0x41642b
push ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push 0x42ea24
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x108]
push eax
xor ebx, ebx
push ebx
call fcn.0041623f
add esp, 0x18
jmp 0x41645e
push dword [edi + 0x138]
mov edi, dword [edi]
call fcn.0041587d
mov esi, dword [ebp - 0x344]
pop ecx
cmp dword [esi + 0x13c], ebx
jne 0x416526
push 0x4000
call fcn.004168f3
pop ecx
mov dword [esi + 0x13c], eax
mov dword [ebp - 0x344], ebx
lea eax, [ebp - 0x339]
push eax
push dword [esi + 0x13c]
mov eax, dword [esi]
mov ecx, 0x4000
call fcn.004159d0
mov edi, eax
pop ecx
pop ecx
cmp edi, 0xffffff96
je 0x416587
cmp edi, ebx
jl 0x416580
jle 0x416573
push ebx
lea eax, [ebp - 0x348]
push eax
push edi
push dword [esi + 0x13c]
push dword [ebp - 0x340]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41658e
cmp byte [ebp - 0x339], 0
jne 0x416595
cmp edi, ebx
jne 0x41652c
mov edi, 0x5000000
jmp 0x4165bc
mov edi, 0x1000
jmp 0x4165bc
mov edi, 0x400
jmp 0x4165bc
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x340]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov edi, dword [ebp - 0x344]
push dword [ebp - 0x340]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi]
call fcn.00415bea
mov eax, edi
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416782
leave
ret 4