Function at 0x4b36f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x4c
push ebx
push ebp
mov ebp, dword [esp + 0x58]
mov eax, dword [ebp]
push esi
push edi
mov edi, dword [eax + 0x863c]
mov ecx, dword [edi]
push 0x5c
push ecx
call fcn.0049dd40
mov esi, dword [ebp]
mov ebx, eax
xor eax, eax
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call fcn.004c0330
mov ecx, dword [ebp]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0x15c]
mov dword [esp + 0x1c], eax
mov dword [ebp + 0x214], edx
mov eax, dword [esi + 0x10c]
mov dword [ebp + 0x218], eax
lea eax, [esi + 0x524]
mov dword [ecx + 0xdc], eax
test ebx, ebx
jne 0x4b3765
pop edi
pop esi
pop ebp
mov eax, 0x25
pop ebx
add esp, 0x4c
ret
cmp byte [ebx + 1], 0
je 0x4b3758
mov edx, dword [esi + 0x8628]
or edx, dword [esi + 0x862c]
mov eax, dword [edi]
je 0x4b3791
push 0x553ba4
push eax
call fcn.0053818d
mov ebx, eax
add esp, 8
mov dword [esp + 0x60], ebx
jmp 0x4b37e7
mov ecx, dword [ebp]
mov edx, dword [ecx + 0x324]
push edx
push 0x8301
push eax
call fcn.0053b3e5
add esp, 0xc
test eax, eax
jge 0x4b37cb
mov ecx, dword [edi]
push ecx
push str.Cant_open__s_for_writing
push esi
call fcn.004a7c70
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x17
pop ebx
add esp, 0x4c
ret
push eax
call fcn.0048a90e
mov edx, dword [edi]
push 0x553b84
push edx
call fcn.0053818d
add esp, 0xc
mov ebx, eax
mov dword [esp + 0x60], eax
test ebx, ebx
jne 0x4b37f0
mov eax, dword [edi]
push eax
jmp 0x4b37b0
mov eax, dword [esi + 0x1b0]
mov ecx, dword [esi + 0x1b4]
cmp eax, 0xffffffff
jne 0x4b3805
cmp ecx, eax
je 0x4b3810
push ecx
push eax
push esi
call fcn.004ac270
add esp, 0xc
cmp dword [esi + 0x862c], 0
jg 0x4b3880
jl 0x4b3824
cmp dword [esi + 0x8628], 0
jae 0x4b3880
lea ecx, [esp + 0x24]
push ecx
push ebx
call fcn.0048a9db
add esp, 4
push eax
call fcn.004942c6
add esp, 8
test eax, eax
je 0x4b3863
push ebx
call fcn.0048012f
mov edx, dword [edi]
push edx
push str.Cant_get_the_size_of__s
push esi
call fcn.004a7c70
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 0x17
pop ebx
add esp, 0x4c
ret
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x8628], eax
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x862c], ecx
jmp 0x4b3880
lea edx, [esp + 0x10]
push edx
push 0x4000
push ebp
call fcn.004a4220
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4b39a0
mov edx, dword [esp + 0x10]
test edx, edx
jle 0x4b398e
mov ecx, dword [esi + 0x8628]
mov eax, dword [esi + 0x862c]
mov ebx, ecx
or ebx, eax
mov edi, edx
je 0x4b38e5
xor edi, edi
xor ebx, ebx
cmp edi, eax
jg 0x4b395a
jl 0x4b38d3
cmp edx, ecx
ja 0x4b395a
sub ecx, edx
sbb eax, edi
mov dword [esi + 0x8628], ecx
mov dword [esi + 0x862c], eax
xor edi, edi
lea eax, [esi + 0x524]
mov ebx, dword [esp + 0x60]
push ebx
push edi
push 1
push eax
call fcn.0048030d
add esp, 0x10
cmp eax, edi
jne 0x4b3976
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add eax, edi
adc ecx, 0
push ecx
push eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call fcn.004ac210
push ebp
call fcn.004ac2b0
add esp, 0x10
test eax, eax
jne 0x4b399b
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push esi
call fcn.004c0880
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4b3880
push ebx
call fcn.0048012f
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
sub edx, ecx
lea eax, [ecx + esi + 0x524]
mov edi, edx
mov dword [esi + 0x8628], ebx
mov dword [esi + 0x862c], ebx
jmp 0x4b38eb
push ebx
mov edi, 0x37
call fcn.0048012f
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
push ebp
call fcn.004ac2b0
add esp, 4
test eax, eax
je 0x4b39a0
mov edi, 0x2a
push ebx
call fcn.0048012f
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret