Function at 0x48bc40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x450
mov edi, ecx
mov eax, dword [0x655248]
xor eax, ebp
mov dword [esp + 0x448], eax
mov dword [ecx], 0x5e24c0
lea esi, [ecx + 8]
mov eax, dword [ecx + 8]
mov ecx, dword [eax + 4]
mov edx, 0xffffffff
test byte [edi + ecx + 0x18], 5
jne 0x48bc9f
mov ecx, dword [esi + ecx + 0x18]
mov eax, dword [ecx]
sub esp, 0x14
movaps xmm0, xmmword [0x5dfa70]
movups xmmword [esp + 4], xmm0
lea edx, [esp + 0x54]
mov dword [esp], edx
call dword [eax + 0xc]
mov edx, dword [esp + 0x48]
mov eax, dword [esi]
mov dword [esp + 8], edx
mov ecx, dword [eax + 4]
add ecx, esi
lea ebx, [esp + 0x40]
push ebx
call fcn.00469158
mov ecx, ebx
push 0x656798
call fcn.0047adb8
mov edx, dword [eax]
mov ecx, eax
push 0xa
call dword [edx + 0x1c]
mov ebx, eax
lea ecx, [esp + 0x40]
call fcn.0046bf20
movsx eax, bl
mov ecx, esi
push eax
call fcn.00469e00
mov dword [esp + 0x18], esi
mov ecx, esi
call fcn.00469050
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [edi + 0xc]
lea ebx, [esp + 0x24]
mov dword [esp + 0x1c], ecx
push ebx
call fcn.0042c1c8
test byte [0x654608], 0x19
jne 0x48c038
mov eax, dword [0x656e6c]
test eax, eax
je 0x48bd62
push ebx
push dword [edi + 0x90]
push dword [edi + 0x98]
push dword [edi + 0x94]
push dword [edi + 4]
call eax
add esp, 0x14
test al, al
je 0x48bd62
cmp byte [esp + 0x2f], 0
jns 0x48be8e
push dword [esp + 0x24]
call fcn.005aade6
add esp, 4
jmp 0x48be8e
mov eax, dword [0x654230]
test al, 2
je 0x48bd82
cmp byte [esp + 0x2f], 0
jns 0x48bd76
mov ebx, dword [esp + 0x24]
push ebx
call dword [0x64dc04]
mov eax, dword [0x654230]
mov dword [esp + 4], edi
test al, 4
lea edi, [esp + 0x40]
jne 0x48bd9d
cmp eax, 1
ja 0x48bde1
mov ecx, dword [esp + 4]
cmp dword [ecx + 4], 2
jl 0x48bde1
push 2
call fcn.005aff5f
add esp, 4
movzx ecx, byte [esp + 0x2f]
test cl, cl
cmovs ecx, dword [esp + 0x28]
lea edx, [esp + 0x24]
cmovs edx, dword [esp + 0x24]
push eax
push 1
push ecx
push edx
call fcn.005c3e34
add esp, 0x10
push 2
call fcn.005aff5f
add esp, 4
push eax
call fcn.005c2e5b
add esp, 4
mov eax, dword [0x654230]
test al, 1
je 0x48be1c
call fcn.0048b520
test al, al
je 0x48be1c
mov dword [esp + 0x40], 0xffffffff
movzx eax, byte [esp + 0x2f]
test al, al
cmovs eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmovs ecx, dword [esp + 0x24]
push 0
push edi
push eax
push ecx
push dword [0x656e78]
call dword [0x64dd54]
mov eax, dword [esp + 4]
cmp dword [eax + 4], 3
jne 0x48be74
mov ecx, dword [0x656e50]
lea esi, [esp + 0x24]
test ecx, ecx
je 0x48be4e
movzx eax, byte [esp + 0x2f]
mov edx, esi
test al, al
jns 0x48be47
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push eax
push edx
call fcn.00487100
push 0x400
push 0xff
push edi
call fcn.005af210
add esp, 0xc
cmp byte [esi + 0xb], 0
jns 0x48bef5
mov eax, dword [esp + 0x24]
jmp 0x48bef9
lea esi, [esp + 0x24]
cmp byte [esi + 0xb], 0
jns 0x48be8a
push dword [esp + 0x24]
call fcn.005aade6
add esp, 4
mov edi, dword [esp + 4]
lea ecx, [edi + 0xa0]
call fcn.004e07b0
lea ebx, [edi + 0x40]
mov eax, dword [edi + 8]
mov eax, dword [eax + 4]
mov dword [edi + eax + 8], 0x5dcba8
mov dword [edi + 0xc], 0x5dcbb0
cmp byte [edi + 0x37], 0
jns 0x48bec6
mov eax, dword [esp + 0x18]
push dword [eax + 0x24]
call fcn.005aade6
add esp, 4
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.00468c94
mov ecx, esi
call fcn.00413ad0
mov ecx, ebx
call fcn.00468c8a
mov ecx, dword [esp + 0x448]
xor ecx, ebp
call fcn.005aae21
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0x24]
push 0x400
push eax
push edi
call fcn.004959d0
add esp, 0xc
push edi
call fcn.00413ad0
add esp, 4
mov eax, dword [0x656e8c]
mov ecx, dword [0x6593e0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x18]
jg 0x48c057
mov eax, dword [0x656e84]
cmp eax, dword [0x656e88]
je 0x48c0c3
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [0x656e8c]
mov ecx, dword [0x6593e0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x18]
jg 0x48c08d
mov eax, dword [0x656e88]
test eax, eax
mov ecx, dword [0x656e80]
cmove eax, ecx
add eax, 0xffffffff
cmp ecx, eax
jb 0x48c0c6
shl eax, 2
add eax, dword [0x656e7c]
lea ecx, [esp + 0x20]
push eax
call fcn.004827d0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x48c020
mov dword [esp + 0x14], esi
cmp byte [esi + 0xb], 0
jns 0x48bfb2
mov ecx, dword [esp + 0x24]
jmp 0x48bfb6
lea ecx, [esp + 0x24]
mov esi, dword [esp + 4]
mov dword [esp + 0x10], eax
mov edi, ecx
add edi, dword [esp + 8]
mov dword [esp + 0xc], ecx
je 0x48bfd5
push edi
call fcn.005c5740
add esp, 4
jmp 0x48bfd7
xor eax, eax
mov ecx, dword [esi + 0x90]
mov ebx, dword [esp + 8]
sub ebx, ecx
mov edx, dword [esp + 0xc]
add edx, ecx
mov ecx, dword [esi + 0x94]
mov esi, dword [esi + 0x98]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
lea edi, [esp + 0x38]
push eax
push edi
push esi
push ecx
mov eax, dword [esp + 0x20]
push eax
call dword [eax + 4]
add esp, 0x14
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x20]
call fcn.004827b0
cmp byte [esi + 0xb], 0
jns 0x48be8a
jmp 0x48be7e
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
lea ecx, [esp + 0x40]
xor edx, edx
push ebx
push edi
push 0
call fcn.0048c4d0
add esp, 0xc
jmp 0x48bd1e
push 0x656e8c
call fcn.005aae67
add esp, 4
cmp dword [0x656e8c], 0xffffffff
jne 0x48bf32
xorps xmm0, xmm0
movups xmmword [0x656e7c], xmm0
push 0x656e8c
call fcn.005aaedd
add esp, 4
jmp 0x48bf32
push 0x656e8c
call fcn.005aae67
add esp, 4
cmp dword [0x656e8c], 0xffffffff
jne 0x48bf6c
xorps xmm0, xmm0
movups xmmword [0x656e7c], xmm0
push 0x656e8c
call fcn.005aaedd
add esp, 4
jmp 0x48bf6c
int3
int3