Function at 0x527900
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x65b9a8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x527939
cmp byte [esi + 8], 0
jne 0x527939
mov byte [esi + 9], 0
lea ecx, [esp + 0x14]
call fcn.004024f0
mov dword [esp + 0x58], 0
lea ecx, [esp + 0x18]
call fcn.004024f0
mov byte [esp + 0x58], 1
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x527962
lea eax, [esi + 0x14]
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.00526ec0
add esp, 8
test eax, eax
je 0x52798d
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push str.utf8_s
push eax
call fcn.00402f60
add esp, 0xc
jmp 0x5279a1
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x527997
lea eax, [esi + 0x14]
push eax
lea ecx, [esp + 0x18]
call fcn.0040e500
mov ecx, dword [esp + 0x14]
mov ebx, dword [ecx - 0xc]
add ebx, 0x12c
push ebx
call fcn.005f4e47
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x527b69
push ebx
push 0
push ebp
call fcn.00621270
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x30], edx
mov edx, dword [esi + 0x30]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x38]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [esi + 8]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x40]
mov dword [esp + 0x4c], eax
movzx eax, byte [esi + 0x1c]
mov byte [esp + 0x50], cl
movzx ecx, byte [esi + 0x1d]
mov dword [esp + 0x48], edx
movzx edx, byte [esi + 9]
mov byte [esp + 0x52], al
movzx eax, byte [esi + 0x1f]
mov byte [esp + 0x53], cl
movzx ecx, byte [esi + 0x20]
mov byte [esp + 0x51], dl
movzx edx, byte [esi + 0x1e]
mov byte [esp + 0x55], al
movzx eax, byte [esi + 0x22]
mov byte [esp + 0x56], cl
movzx ecx, byte [esi + 0x23]
mov byte [esp + 0x54], dl
movzx edx, byte [esi + 0x21]
mov byte [esp + 0x58], al
mov eax, dword [esp + 0x20]
mov byte [esp + 0x59], cl
mov ecx, dword [eax - 0xc]
push ecx
mov byte [esp + 0x5b], dl
push eax
lea edx, [ebp + 0x2c]
push edx
mov dword [esp + 0x44], 0x2c
call fcn.00622730
mov eax, dword [esp + 0x2c]
mov eax, dword [eax - 0xc]
mov byte [eax + ebp + 0x2d], 0
mov esi, dword [esi + 0x50]
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx - 0xc]
add esp, 0x18
cmp esi, 0x10
jne 0x527a9c
mov eax, esi
jmp 0x527aa8
xor eax, eax
cmp esi, 0x20
setne al
dec eax
and eax, 0x20
mov byte [ecx + ebp + 0x2e], al
mov ecx, 0xb
lea esi, [esp + 0x24]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x60]
push 0x68559c
push edi
call fcn.0062385d
mov esi, eax
add esp, 8
test esi, esi
jne 0x527b4d
call fcn.006263a4
mov esi, dword [eax]
lea ecx, [esp + 0x60]
call fcn.004024f0
mov byte [esp + 0x58], 2
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 0x400
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x75f190]
push eax
push edi
push ecx
lea edx, [esp + 0x6c]
push edx
call fcn.00402f60
mov eax, dword [esp + 0x2c]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [0x75f1b0]
mov edx, dword [esp + 0x60]
push 0x30
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [esp + 0x58], 1
lea ecx, [esp + 0x60]
call fcn.00402560
jmp 0x527b60
push esi
push ebx
push 1
push ebp
call fcn.00623715
push esi
call fcn.00623537
add esp, 0x14
push ebp
call fcn.005f4e52
add esp, 4
mov byte [esp + 0x58], 0
lea ecx, [esp + 0x18]
call fcn.00402560
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402560
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 4