Function at 0x48d920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f69c6
mov eax, dword fs:[0]
push eax
sub esp, 0x664
mov eax, dword [0x529748]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
mov ebx, dword [ebp + 0xc]
je 0x48d960
mov ecx, dword [edi]
call fcn.0048cc90
mov eax, dword [edi]
mov ecx, dword [ebp + 8]
mov dword [edi + 4], 0xffffffff
cmp ecx, dword [eax + 4]
jl 0x48d994
mov eax, 0x10000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bd963
mov esp, ebp
pop ebp
ret 0x10
cmp ecx, dword [eax + 0x10]
jge 0x48d9a3
mov ecx, eax
call fcn.0048c5b0
mov ecx, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax + 0x10], ecx
jge 0x48da05
lea ebx, [ebx]
mov esi, dword [edi]
test esi, esi
je 0x48d9fe
cmp dword [esi + 0x18], 0
je 0x48d9fe
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x48d9fe
mov ecx, dword [esi + 0x50]
sub esp, 0x10
mov eax, dword [esi + 0x48]
add ecx, dword [esi + 0x4c]
add eax, 0x2e
add eax, ecx
mov dword [esi + 0x10], edx
add dword [esi + 0x14], eax
lea edx, [esi + 0x28]
push 0
lea eax, [esi + 0x78]
mov ecx, esi
push 0
push eax
call fcn.0048c170
xor ecx, ecx
add esp, 0x1c
test eax, eax
sete cl
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax + 0x10], ecx
jl 0x48d9b0
lea eax, [ebp - 0x658]
push eax
push ecx
mov ecx, edi
call fcn.0048ceb0
mov eax, dword [ebp - 0x44c]
shr eax, 4
and al, 1
je 0x48da5e
movzx eax, word [ebx]
cmp eax, 0x2f
je 0x48da4e
cmp eax, 0x5c
je 0x48da4e
test ax, ax
je 0x48da3a
cmp word [ebx + 2], 0x3a
je 0x48da4e
lea ecx, [edi + 0x244]
mov edx, ebx
call fcn.0048d760
xor eax, eax
jmp 0x48d976
xor ecx, ecx
mov edx, ebx
call fcn.0048d760
xor eax, eax
jmp 0x48d976
xor eax, eax
mov dword [ebp - 0x660], ebx
mov word [ebp - 0x420], ax
mov esi, ebx
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x48daa1
lea esp, [esp]
cmp ax, 0x2f
je 0x48da8c
cmp ax, 0x5c
jne 0x48da8f
lea esi, [ecx + 2]
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x48da80
mov dword [ebp - 0x660], esi
push 0x104
push ebx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004bf306
add esp, 0x10
cmp esi, ebx
jne 0x48daca
xor eax, eax
mov word [ebp - 0x218], ax
jmp 0x48db08
mov eax, esi
sub eax, ebx
and eax, 0xfffffffe
cmp eax, 0x208
jae 0x48dcc8
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
mov ax, word [ebp - 0x218]
cmp ax, 0x2f
je 0x48db66
cmp ax, 0x5c
je 0x48db66
test ax, ax
je 0x48db08
cmp word [ebp - 0x216], 0x3a
je 0x48db66
mov edx, str.YjJqMWMl
lea ecx, [ebp - 0x66c]
call fcn.0048e1d0
push dword [ebp - 0x660]
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 1
push ecx
lea esi, [edi + 0x244]
push esi
push ecx
mov ecx, eax
call fcn.0048e410
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0048deb0
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x66c]
call fcn.00415770
mov ecx, esi
jmp 0x48dbb6
mov edx, str.YjJqMQ
lea ecx, [ebp - 0x66c]
call fcn.0048e1d0
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 0
push ecx
push ecx
mov ecx, eax
call fcn.0048e410
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0048deb0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x66c]
call fcn.00415770
xor ecx, ecx
lea edx, [ebp - 0x218]
call fcn.0048d760
push 0
push dword [ebp - 0x44c]
lea eax, [ebp - 0x420]
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x660], eax
cmp eax, 0xffffffff
jne 0x48dbf6
mov eax, 0x200
jmp 0x48d976
mov edx, dword [edi + 0x23c]
mov ecx, dword [edi]
call fcn.0048c8d0
cmp dword [edi + 0x240], 0
jne 0x48dc1f
push 0x4000
call fcn.004bc57c
add esp, 4
mov dword [edi + 0x240], eax
xor ebx, ebx
mov edx, dword [edi + 0x240]
lea eax, [ebp - 0x659]
mov ecx, dword [edi]
push eax
push 0x4000
call fcn.0048ca50
mov esi, eax
add esp, 8
cmp esi, 0xffffff96
je 0x48dc84
test esi, esi
js 0x48dc76
jle 0x48dc6a
push 0
lea eax, [ebp - 0x424]
push eax
push esi
push dword [edi + 0x240]
push dword [ebp - 0x660]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x48dc7d
cmp byte [ebp - 0x659], bl
jne 0x48dc89
test esi, esi
jne 0x48dc21
mov ebx, 0x5000000
jmp 0x48dc89
mov ebx, 0x400
jmp 0x48dc89
mov ebx, 0x1000
mov ecx, dword [edi]
call fcn.0048cc90
test ebx, ebx
jne 0x48dcb5
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x660]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0x660]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x48d976
call fcn.004be506
int3