Function at 0x4539e9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x243c
call fcn.00426e10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov ebx, 2
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], 0x49f798
mov dword [esp + 0x18], esi
cmp dword [esi + 8], ebx
jbe 0x453a3d
mov eax, dword [esi + 4]
mov ecx, dword [eax + 8]
call fcn.0040d420
test al, 1
je 0x453a33
mov edi, 0x80000000
test al, 2
je 0x453a3d
or edi, 0x3000
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
lea edx, [esp + 0x1438]
push edx
lea ecx, [esp + 0x42c]
push ecx
lea edx, [esp + 0x1c48]
push edx
lea ecx, [esp + 0xc3c]
push ecx
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x34]
push ecx
push eax
call fcn.0044c7d8
push eax
call fcn.004369ff
test al, al
jne 0x453a95
lea edx, [esp + 0xc]
push edx
mov dword [0x49f7a0], ebx
call fcn.00436b52
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esp + 0x20]
cmp ebx, 3
je 0x453ac0
cmp ebx, 1
je 0x453ac0
lea eax, [esp + 0xc]
push eax
mov dword [0x49f7a0], 3
call fcn.00436b52
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x49f7a8
push ebx
push 0x49f660
call fcn.00453843
test al, al
jne 0x453afc
call dword [0x47d2e0]
lea ecx, [esp + 0xc]
push ecx
mov dword [0x49f7a4], eax
mov dword [0x49f7a0], 4
call fcn.00436b52
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ebx, 3
je 0x453c1d
cmp ebx, 1
jne 0x453b17
cmp dword [0x49f764], 2
je 0x453c1d
mov ecx, dword [esp + 0x24]
push 0
push 0
push ebx
lea edx, [esp + 0x1444]
push edx
lea eax, [esp + 0x438]
push eax
mov eax, dword [0x49f7a8]
push ecx
lea edx, [esp + 0xc48]
push edx
push eax
call dword [0x47d730]
mov ebx, eax
mov dword [esp + 0xc], ebx
test ebx, ebx
jne 0x453b77
call dword [0x47d2e0]
lea ecx, [esp + 0xc]
push ecx
mov dword [0x49f7a4], eax
mov dword [0x49f7a0], 7
call fcn.00436b52
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [0x49f700], 0
je 0x453b85
or edi, 2
jmp 0x453b88
or edi, 1
push 0
push edi
push 0x80000000
lea edx, [esp + 0x1c4c]
push edx
push ebx
call dword [0x47d734]
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
jne 0x453bd1
call dword [0x47d2e0]
mov dword [0x49f7a4], eax
lea eax, [esp + 0xc]
push eax
mov dword [0x49f7a0], 8
call fcn.00436b52
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 4]
push 0x482330
push eax
call fcn.0044c7d8
push eax
call fcn.0041610c
mov esi, eax
add esp, 8
test esi, esi
jne 0x453cbb
call dword [0x47d2e0]
lea edx, [esp + 0xc]
push edx
mov dword [0x49f7a4], eax
mov dword [0x49f7a0], 9
call fcn.00436b52
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 4]
mov eax, dword [eax]
push 0
push edi
push 0
push 0
push eax
call fcn.0044c7d8
mov ecx, dword [0x49f7a8]
push eax
push ecx
call dword [0x47d72c]
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
jne 0x453c6f
call dword [0x47d2e0]
lea edx, [esp + 0xc]
push edx
mov dword [0x49f7a4], eax
mov dword [0x49f7a0], 5
call fcn.00436b52
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
push 0x482330
push eax
call fcn.0044c7d8
push eax
call fcn.0041610c
mov esi, eax
add esp, 8
test esi, esi
jne 0x453cb7
call dword [0x47d2e0]
lea ecx, [esp + 0xc]
push ecx
mov dword [0x49f7a4], eax
mov dword [0x49f7a0], 6
call fcn.00436b52
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x1c], 1
test ebx, ebx
jne 0x453cd4
push edi
call fcn.00436b0b
cmp eax, 0xc8
jne 0x453d17
lea edx, [esp + 0x1c]
push edx
push 0x400
lea eax, [esp + 0x30]
push eax
push edi
call dword [0x47d750]
test eax, eax
je 0x453d17
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x453d21
push esi
push 1
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00416402
mov eax, dword [esp + 0x2c]
add dword [0x49f79c], eax
add esp, 0x10
test eax, eax
jne 0x453cc3
jmp 0x453d21
mov dword [0x49f7a0], 0xa
push esi
call fcn.004164fb
add esp, 4
lea edx, [esp + 0xc]
push edx
call fcn.00436b52
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4