Function at 0x4196b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x854
mov eax, dword [0x52be84]
xor eax, esp
mov dword [esp + 0x850], eax
mov eax, dword [esp + 0x85c]
push ebx
mov ebx, dword [esp + 0x85c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x874]
push 0x4000
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edx
call fcn.00452f10
push 0x4000
mov ebp, eax
push 0
push ebp
call fcn.0045a690
push 0x4000
push 0
push ebp
mov dword [esp + 0x2c], 0
call fcn.0045a690
push 0x40
lea eax, [esp + 0x40]
push 0
push eax
call fcn.0045a690
lea ecx, [esp + 0x48]
push ecx
call fcn.00419550
lea edx, [esp + 0x4c]
push edx
push str.__s_
push 0x4000
push ebp
call fcn.004530d0
mov esi, eax
lea eax, [edi + edi*4]
lea ecx, [eax*2 + str.NOLOG]
push ecx
mov edx, 0x4000
push str.__s_
sub edx, esi
push edx
lea eax, [esi + ebp]
push eax
call fcn.004530d0
add esp, 0x4c
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, 0x4000
push str.__04x_
sub ecx, esi
push ecx
lea edx, [esi + ebp]
push edx
call fcn.004530d0
push 0x5c
push ebx
add esi, eax
call fcn.00454400
inc eax
push eax
mov eax, 0x4000
push str.___15.15s_
sub eax, esi
push eax
lea ecx, [esi + ebp]
push ecx
call fcn.004530d0
mov edx, dword [esp + 0x40]
add esi, eax
push edx
mov eax, 0x4000
push str.___15.15s_
sub eax, esi
push eax
lea ecx, [esi + ebp]
push ecx
call fcn.004530d0
mov edx, dword [esp + 0x8a8]
add esi, eax
push edx
mov eax, 0x4000
push str.__04d_
sub eax, esi
push eax
lea ecx, [esi + ebp]
push ecx
call fcn.004530d0
add esi, eax
mov eax, dword [esp + 0x8c0]
add esp, 0x48
test eax, eax
je 0x419814
push eax
mov edx, 0x4000
push str._ERR___08x_
sub edx, esi
push edx
lea eax, [esi + ebp]
push eax
call fcn.004530d0
add esp, 0x10
add esi, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push ecx
push edx
mov eax, 0x4000
sub eax, esi
push eax
lea ecx, [esi + ebp]
push ecx
call fcn.00455b00
add esi, eax
mov edx, 0x4000
push 0x51e27c
sub edx, esi
push edx
lea eax, [esi + ebp]
push eax
call fcn.004530d0
add esi, eax
add esp, 0x1c
cmp esi, 0x800
jle 0x41997c
push 0x4000
call fcn.00452f10
push 0x4000
mov edi, eax
push 0
push edi
mov dword [esp + 0x24], edi
call fcn.0045a690
push 0x7ff
lea ecx, [esp + 0x75]
push 0
push ecx
mov byte [esp + 0x7c], 0
call fcn.0045a690
mov eax, esi
cdq
and edx, 0x7ff
add eax, edx
sar eax, 0xb
add esp, 0x1c
xor ebx, ebx
xor ecx, ecx
test eax, eax
jle 0x419907
mov edi, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov edi, edi
cmp edi, 0x7fe
mov eax, 0x7fe
jg 0x4198bf
mov eax, edi
push eax
lea edx, [ebx + ebp]
push edx
lea eax, [esp + 0x68]
push eax
call fcn.00461820
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x6c]
push ecx
mov edx, 0x4000
push 0x51e278
sub edx, ebx
push edx
lea ecx, [ebx + eax]
push ecx
call fcn.004530d0
add esp, 0x1c
add ebx, eax
sub edi, 0x800
sub dword [esp + 0x18], 1
jne 0x4198b0
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
shl ecx, 0xb
sub esi, ecx
cmp esi, 0x800
jle 0x419919
mov esi, 0x800
push esi
lea edx, [ebx + ebp]
push edx
lea eax, [esp + 0x68]
push eax
call fcn.00461820
lea ecx, [esp + 0x6c]
push ecx
mov edx, 0x4000
push 0x51e278
sub edx, ebx
push edx
lea eax, [ebx + edi]
push eax
call fcn.004530d0
add esp, 0x1c
lea edi, [esp + 0x10]
add ebx, eax
call fcn.004195c0
test eax, eax
jne 0x4199ad
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
push ecx
push ebx
push 1
push esi
call fcn.00453400
mov edx, dword [esp + 0x20]
push edx
call fcn.004538e0
push esi
call fcn.00452ef0
add esp, 0x18
jmp 0x4199a4
lea edi, [esp + 0x10]
call fcn.004195c0
test eax, eax
jne 0x4199ad
mov eax, dword [esp + 0x10]
push eax
push esi
push 1
push ebp
call fcn.00453400
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004538e0
add esp, 0x14
push ebp
call fcn.00452ef0
add esp, 4
mov ecx, dword [esp + 0x860]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004520a0
add esp, 0x854
ret