Function at 0x49f7e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58dd20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040bfb0
mov byte [ebp - 4], 2
mov byte [ebp - 4], 3
push 0x59e3a8
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00558089
add esp, 8
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp ebx, edi
jne 0x49f869
push 0xa1
mov ecx, esi
call fcn.0049c670
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00404d60
jmp 0x49fab9
mov dword [ebp + 8], 0xa
push 0x80
lea ecx, [ebp - 0x130]
push ecx
push 0xd7
mov edx, dword [0x5fd7c0]
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, di
jne 0x49f897
sub eax, edx
sar eax, 1
push ebx
push 1
push eax
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x2c]
call fcn.005120c0
push eax
call fcn.00557f51
add esp, 0x10
lea eax, [ebp + 8]
lea ecx, [eax + 2]
jmp 0x49f8d0
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x49f8d0
sub eax, ecx
sar eax, 1
push ebx
push eax
push 1
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.005120c0
push eax
call fcn.00557f51
push 0x1450
call fcn.0053f875
add esp, 0x14
mov ebx, eax
mov dword [ebp - 0x30], edi
add esi, 4
mov ecx, esi
call fcn.004312b0
cmp edi, eax
jge 0x49fa7d
push 0x1450
push 0
push ebx
call fcn.00555020
add esp, 0xc
push 0x104
lea edx, [ebp - 0x748]
push edx
push 0
push edi
mov ecx, esi
call fcn.004312f0
push 0x104
lea eax, [ebp - 0x338]
push eax
push 1
push edi
mov ecx, esi
call fcn.004312f0
push 0x104
lea ecx, [ebp - 0x950]
push ecx
push 2
push edi
mov ecx, esi
call fcn.004312f0
push 0x104
lea edx, [ebp - 0x540]
push edx
push 3
push edi
mov ecx, esi
call fcn.004312f0
push 0x104
lea eax, [ebp - 0xb58]
push eax
push 4
push edi
mov ecx, esi
call fcn.004312f0
cmp word [ebp - 0x338], 0
jne 0x49f9d5
cmp word [ebp - 0x950], 0
jne 0x49f9d5
cmp word [ebp - 0x540], 0
jne 0x49f9d5
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x748]
push edx
push str.__s___s
push 0xa28
push ebx
call fcn.00555ab3
add esp, 0x14
jmp 0x49fa0f
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xb58]
push ecx
lea edx, [ebp - 0x540]
push edx
lea eax, [ebp - 0x950]
push eax
lea ecx, [ebp - 0x338]
push ecx
lea edx, [ebp - 0x748]
push edx
push str.__s____s____s____s____s__s
push 0xa28
push ebx
call fcn.00555ab3
add esp, 0x24
push 0xa28
call fcn.0053f875
add esp, 4
mov esi, eax
push 0xa28
push esi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00511e10
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49fa32
sub eax, edx
mov ecx, dword [ebp - 0x14]
push ecx
push 1
push eax
push esi
call fcn.00557f51
add esp, 0x10
test eax, eax
jne 0x49fa74
push ebx
call fcn.00553d26
push esi
call fcn.00553d26
mov edx, dword [ebp - 0x14]
push edx
call fcn.00557d86
add esp, 0xc
push 0xcc
mov ecx, dword [ebp - 0x1c]
jmp 0x49f853
inc edi
mov esi, dword [ebp - 0x1c]
jmp 0x49f904
push ebx
call fcn.00553d26
mov eax, dword [ebp - 0x14]
push eax
call fcn.00557d86
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 0x49fab9
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.00511fc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4