Function at 0x1001d4cb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
push 0x5c
mov eax, dword [ebx]
mov dword [ebp - 0x50], ebx
mov eax, dword [eax + 0x8684]
mov dword [ebp - 0x44], eax
push dword [eax]
call fcn.1003b670
mov ebx, dword [ebx]
mov dword [ebp - 0x4c], eax
xor eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], eax
call fcn.1002f4e0
mov ecx, dword [ebp - 0x50]
mov esi, eax
mov eax, dword [ebx + 0x154]
mov edi, edx
lea edx, [ebx + 0x55c]
mov dword [ecx + 0x2a8], eax
mov eax, dword [ebx + 0x104]
mov dword [ecx + 0x2ac], eax
mov eax, dword [ecx]
mov dword [eax + 0xdc], edx
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x1001d54a
push 0x25
pop eax
jmp 0x1001d743
cmp byte [eax + 1], 0
je 0x1001d542
mov eax, dword [ebx + 0x8670]
or eax, dword [ebx + 0x8674]
je 0x1001d565
push 0x10130984
jmp 0x1001d5a7
mov eax, dword [ecx]
push dword [eax + 0x334]
mov eax, dword [ebp - 0x44]
push 0x8301
push dword [eax]
call fcn.1004b663
add esp, 0xc
test eax, eax
jns 0x1001d59a
mov eax, dword [ebp - 0x44]
push dword [eax]
push str.Cant_open__s_for_writing
push ebx
call fcn.10018208
add esp, 0xc
push 0x17
jmp 0x1001d544
push eax
call fcn.10042326
mov dword [esp], 0x101309a4
mov eax, dword [ebp - 0x44]
push dword [eax]
call fcn.100397e9
mov dword [ebp - 0x48], eax
pop ecx
pop ecx
test eax, eax
je 0x1001d583
mov edx, dword [ebx + 0x1b0]
mov ecx, dword [ebx + 0x1b4]
cmp edx, 0xffffffff
jne 0x1001d5cf
cmp ecx, edx
je 0x1001d5de
push ecx
push edx
mov ecx, ebx
call fcn.1001fc7b
mov eax, dword [ebp - 0x48]
add esp, 8
xor ecx, ecx
cmp dword [ebx + 0x8674], ecx
jg 0x1001d633
jl 0x1001d5f2
cmp dword [ebx + 0x8670], ecx
jae 0x1001d633
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.10041592
pop ecx
push eax
call fcn.1003cc29
pop ecx
pop ecx
test eax, eax
je 0x1001d621
push dword [ebp - 0x48]
call fcn.10039d78
mov eax, dword [ebp - 0x44]
pop ecx
push dword [eax]
push str.Cant_get_the_size_of__s
jmp 0x1001d58d
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x8670], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x8674], eax
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x60]
push eax
mov edx, 0x4000
call fcn.10018c68
mov dword [ebp - 0x44], eax
pop ecx
test eax, eax
jne 0x1001d735
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x4c], ecx
test ecx, ecx
jle 0x1001d71f
mov eax, dword [ebx + 0x8674]
mov edx, dword [ebx + 0x8670]
mov dword [ebp - 0x44], eax
mov eax, edx
or eax, dword [ebp - 0x44]
je 0x1001d698
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x5c], eax
jg 0x1001d6f7
jl 0x1001d682
cmp ecx, edx
ja 0x1001d6f7
sub edx, ecx
push 0
pop ecx
sbb eax, ecx
mov dword [ebx + 0x8670], edx
mov dword [ebx + 0x8674], eax
mov dword [ebp - 0x4c], ecx
lea edx, [ebx + 0x55c]
push dword [ebp - 0x48]
push ecx
push 1
push edx
call fcn.1003bf0e
mov ecx, dword [ebp - 0x4c]
add esp, 0x10
cmp eax, ecx
jne 0x1001d71a
mov eax, dword [ebp - 0x54]
add eax, ecx
mov ecx, dword [ebp - 0x58]
push 0
pop edx
adc ecx, edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
mov dword [ebx + 0x45c], ecx
mov ecx, dword [ebp - 0x50]
mov dword [ebx + 0x458], eax
call fcn.1001fcac
test eax, eax
jne 0x1001d716
push edi
push esi
mov ecx, ebx
call fcn.10030615
mov dword [ebp - 0x44], eax
pop ecx
pop ecx
test eax, eax
je 0x1001d633
jmp 0x1001d735
mov eax, edx
lea edx, [ebx + 0x55c]
sub ecx, eax
add edx, eax
xor eax, eax
mov dword [ebp - 0x4c], ecx
mov dword [ebx + 0x8670], eax
mov dword [ebx + 0x8674], eax
jmp 0x1001d69e
push 0x2a
jmp 0x1001d71c
push 0x37
pop esi
jmp 0x1001d738
mov ecx, dword [ebp - 0x50]
call fcn.1001fcac
mov ecx, dword [ebp - 0x44]
test eax, eax
push 0x2a
pop edx
cmovne ecx, edx
mov dword [ebp - 0x44], ecx
mov esi, dword [ebp - 0x44]
push dword [ebp - 0x48]
call fcn.10039d78
pop ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003890f
mov esp, ebp
pop ebp
ret