Function at 0x45a0b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa0
mov eax, dword [0x599274]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa4]
push ebx
mov ebx, dword [esp + 0xac]
push esi
mov esi, dword [esp + 0xb8]
push edi
mov dword [esp + 0x1c], eax
test eax, eax
je 0x45a160
test ebx, ebx
je 0x45a160
mov edi, dword [esp + 0xb8]
test edi, edi
je 0x45a160
test esi, esi
je 0x45a160
push 0x84
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esp + 0x24], 0
mov byte [esp + 0x1b], 0
call fcn.00512510
push 0xffffffffffffffff
push edi
push ebx
call fcn.00469bd0
add esp, 0x18
test byte [esi + 0x108], 1
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x11c]
mov dword [esp + 0x10], edi
je 0x45a17a
test eax, eax
je 0x45a14b
lea ecx, [esp + 0x10]
push ecx
push 0
push edi
push 0
call eax
add esp, 0x10
mov edx, dword [esp + 0x10]
push edx
call fcn.00512667
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x45a17a
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00512298
add esp, 0xa0
ret
test byte [esi + 0x108], 1
push ebp
mov dword [esp + 0x18], ebx
mov ebp, edi
je 0x45a1c5
mov eax, dword [esi + 0x11c]
test eax, eax
je 0x45a1c5
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push ebp
push edi
push ebx
call eax
add esp, 0x10
test al, al
jne 0x45a1bd
test ebp, ebp
je 0x45a1b6
push ebp
call fcn.0051258a
add esp, 4
xor al, al
jmp 0x45a2e7
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x14]
test byte [esi + 0x108], 2
je 0x45a1e7
mov eax, dword [esi + 0x124]
test eax, eax
je 0x45a1e7
mov ecx, dword [esp + 0x18]
lea edx, [esi + 8]
push edx
push ebp
push ecx
call eax
add esp, 0xc
lea ecx, [esi + 8]
mov eax, ecx
lea edx, [eax + 1]
nop
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x45a1f0
sub eax, edx
push 0xffffffffffffffff
push eax
push ecx
call fcn.00469bd0
mov edx, dword [esp + 0x24]
push 0xffffffffffffffff
push ebp
push edx
mov ebx, eax
call fcn.00469bd0
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x108]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x4c], ebx
xor ebx, ebx
add esp, 0x18
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], ebx
test al, 1
je 0x45a251
mov dword [esp + 0x44], 1
test al, 2
je 0x45a25a
or dword [esp + 0x44], 2
mov edx, dword [esi + 0x10c]
mov eax, dword [esi + 0x110]
mov ecx, dword [esi + 0x114]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x20]
push 0x557dd8
push edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
call fcn.00513bd0
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x45a2d2
push edi
push 1
lea eax, [esp + 0x30]
push 0x84
push eax
call fcn.0051307e
add esp, 0x10
cmp eax, 1
jne 0x45a2c9
mov ecx, dword [esp + 0x18]
push edi
push eax
push ebp
push ecx
call fcn.0051307e
add esp, 0x10
cmp eax, 1
jne 0x45a2c9
mov byte [esp + 0x13], al
mov dword [esi + 0x118], ebx
push edi
call fcn.00513339
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x45a2e3
push eax
call fcn.0051258a
add esp, 4
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0xac]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00512298
add esp, 0xa0
ret