Function at 0x4d9780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x655330
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd54
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x1c], edi
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040bea0
mov byte [ebp - 4], 2
mov byte [ebp - 4], 3
push 0x6742bc
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00614a04
add esp, 8
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp ebx, esi
jne 0x4d9809
push 0xa1
mov ecx, edi
call fcn.004d66a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.004014a0
jmp 0x4d9a37
mov dword [ebp + 8], 0xa
push 0x80
lea ecx, [ebp - 0x130]
push ecx
push 0xd6
mov edx, dword [0x716738]
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x130]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4d9837
sub eax, edx
sar eax, 1
push ebx
push 1
push eax
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x2c]
call fcn.005be850
push eax
call fcn.006161f6
add esp, 0x10
lea eax, [ebp + 8]
lea ecx, [eax + 2]
jmp 0x4d9870
mov dx, word [eax]
add eax, 2
cmp dx, si
jne 0x4d9870
sub eax, ecx
sar eax, 1
push ebx
push eax
push 1
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.005be850
push eax
call fcn.006161f6
push 0x1450
call fcn.005fb5ce
add esp, 0x14
mov ebx, eax
mov dword [ebp - 0x30], esi
add edi, 4
mov ecx, edi
call fcn.004676a0
cmp esi, eax
jge 0x4d99fb
push 0x1450
push 0
push ebx
call fcn.006100a0
add esp, 0xc
push 0x104
lea edx, [ebp - 0xd60]
push edx
push 0
push esi
mov ecx, edi
call fcn.004a1310
push 0x104
lea eax, [ebp - 0x950]
push eax
push 1
push esi
mov ecx, edi
call fcn.004a1310
push 0x104
lea ecx, [ebp - 0x540]
push ecx
push 2
push esi
mov ecx, edi
call fcn.004a1310
push 0x104
lea edx, [ebp - 0x338]
push edx
push 3
push esi
mov ecx, edi
call fcn.004a1310
push 0x104
lea eax, [ebp - 0x748]
push eax
push 4
push esi
mov ecx, edi
call fcn.004a1310
push 0x104
lea ecx, [ebp - 0xb58]
push ecx
push 5
push esi
mov ecx, edi
call fcn.004a1310
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0xb58]
push eax
lea ecx, [ebp - 0x748]
push ecx
lea edx, [ebp - 0x338]
push edx
lea eax, [ebp - 0x540]
push eax
lea ecx, [ebp - 0x950]
push ecx
lea edx, [ebp - 0xd60]
push edx
push str.__s____s____s____s____s____s__s
push 0xa28
push ebx
call fcn.0061235c
push 0xa28
call fcn.005fb5ce
add esp, 0x2c
mov edi, eax
push 0xa28
push edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.005be750
mov eax, edi
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4d99b0
sub eax, ecx
mov ecx, dword [ebp - 0x14]
push ecx
push 1
push eax
push edi
call fcn.006161f6
add esp, 0x10
test eax, eax
jne 0x4d99f2
push ebx
call fcn.0060faf6
push edi
call fcn.0060faf6
mov edx, dword [ebp - 0x14]
push edx
call fcn.0061466b
add esp, 0xc
push 0xcc
mov ecx, dword [ebp - 0x1c]
jmp 0x4d97f3
inc esi
mov edi, dword [ebp - 0x1c]
jmp 0x4d98a4
push ebx
call fcn.0060faf6
mov eax, dword [ebp - 0x14]
push eax
call fcn.0061466b
add esp, 8
mov dword [ebp - 4], 2
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d9a37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.005be7d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4