Function at 0x523a30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab2f8
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x63ad78]
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 dword [ebp - 0x14], ecx
call fcn.00424300
mov dword [ebp - 0xbc], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xbc]
push ecx
call fcn.004242c0
add esp, 8
movzx edx, al
test edx, edx
je 0x523a9c
lea eax, [ebp + 8]
push eax
call fcn.00424130
add esp, 4
jmp 0x523d81
mov ecx, dword [ebp - 0x14]
call fcn.004242b0
test eax, eax
je 0x523ae3
mov ecx, dword [ebp - 0x14]
call fcn.004242b0
mov esi, eax
mov ecx, dword [ebp - 0x14]
call fcn.004217e0
cmp esi, eax
jae 0x523ae3
lea eax, [ebp + 8]
push eax
call fcn.004241f0
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x14]
call fcn.00424120
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x523d81
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x4c], 0
jne 0x523afb
call fcn.00424300
jmp 0x523d81
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x3c], 0
jne 0x523b50
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x4c]
push ecx
lea edx, [ebp + 8]
push edx
call fcn.004241f0
add esp, 4
movzx eax, al
push eax
call fcn.005264e0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x523b35
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc0], edx
jmp 0x523b40
call fcn.00424300
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
jmp 0x523d81
mov dword [ebp - 0x18], 8
lea eax, [ebp + 8]
push eax
call fcn.004241f0
add esp, 4
mov byte [ebp - 0x1a], al
push 0
push 8
lea ecx, [ebp - 0x40]
call fcn.0042bff0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xb8]
push ecx
lea ecx, [ebp - 0x40]
call fcn.0040cef0
mov ecx, eax
call fcn.005257d0
mov esi, eax
lea ecx, [ebp - 0x40]
call fcn.00410f10
add esi, eax
push esi
lea edx, [ebp - 0xb0]
push edx
lea ecx, [ebp - 0x40]
call fcn.0040cef0
mov ecx, eax
call fcn.005257d0
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x19]
push ecx
lea edx, [ebp - 0x1a]
push edx
mov eax, dword [ebp - 0x14]
add eax, 0x44
push eax
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x3c]
call fcn.00525790
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0
jl 0x523d4b
cmp dword [ebp - 0xc0], 1
jle 0x523c03
cmp dword [ebp - 0xc0], 3
je 0x523cf7
jmp 0x523d4b
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040cef0
mov ecx, eax
call fcn.005257d0
mov ecx, dword [ebp - 0x24]
sub ecx, eax
mov dword [ebp - 0x44], ecx
je 0x523c79
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x44]
push edx
push 1
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040cef0
mov ecx, eax
call fcn.005257d0
push eax
call fcn.00589a50
add esp, 0x10
cmp dword [ebp - 0x44], eax
je 0x523c79
call fcn.00424300
mov dword [ebp - 0x98], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004115f0
mov eax, dword [ebp - 0x98]
jmp 0x523d81
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x41], 1
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x1a]
cmp eax, ecx
je 0x523cad
mov eax, dword [ebp + 8]
mov dword [ebp - 0x94], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004115f0
mov eax, dword [ebp - 0x94]
jmp 0x523d81
cmp dword [ebp - 0x44], 0
jbe 0x523cb5
jmp 0x523cf5
lea ecx, [ebp - 0x40]
call fcn.00410f10
cmp eax, 0x20
jae 0x523cd0
push 0
push 8
lea ecx, [ebp - 0x40]
call fcn.00423080
jmp 0x523cf5
call fcn.00424300
mov dword [ebp - 0x90], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004115f0
mov eax, dword [ebp - 0x90]
jmp 0x523d81
jmp 0x523d6d
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 0x1a]
push edx
call fcn.005264e0
add esp, 8
movzx eax, al
test eax, eax
je 0x523d1d
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc0], ecx
jmp 0x523d28
call fcn.00424300
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0x8c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004115f0
mov eax, dword [ebp - 0x8c]
jmp 0x523d81
call fcn.00424300
mov dword [ebp - 0x88], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004115f0
mov eax, dword [ebp - 0x88]
jmp 0x523d81
jmp 0x523b79
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.005824ce
mov esp, ebp
pop ebp
ret 4