Function at 0x10033478
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101db49e
mov eax, dword fs:[0]
push eax
mov eax, 0x1c8c
call fcn.1005d950
mov eax, dword [0x10285294]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.10021605
mov ecx, eax
call fcn.1005ec4a
push eax
lea ecx, [ebp - 0x1c10]
call fcn.10002590
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c10]
push eax
lea ecx, [ebp - 0x1bc8]
call fcn.10004100
lea eax, [ebp - 0x1c10]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x1b98]
call fcn.10004100
push 2
pop eax
mov edi, str.LatelyCharDraw.xml
mov byte [ebp - 4], al
push edi
call fcn.100802ff
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1bc8]
call fcn.100042e0
mov edi, str.LatelyCharDraw1.xml
push edi
call fcn.100802ff
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1b98]
call fcn.100042e0
cmp dword [ebp - 0x1bb4], 8
lea eax, [ebp - 0x1bc8]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmovae eax, dword [ebp - 0x1bc8]
push eax
call ebx
cmp dword [ebp - 0x1b84], 8
lea eax, [ebp - 0x1b98]
cmovae eax, dword [ebp - 0x1b98]
push eax
call ebx
lea eax, [ebp - 0x1b98]
push eax
lea eax, [ebp - 0x1bf8]
push eax
call fcn.1006fd0f
pop ecx
pop ecx
lea ecx, [ebp - 0x1c98]
mov byte [ebp - 4], 3
call fcn.10059460
push 0x38
mov byte [ebp - 4], 4
call fcn.1005d503
pop ecx
mov dword [ebp - 0x1c20], eax
mov byte [ebp - 4], 5
mov edi, 0x101e69bc
test eax, eax
je 0x100335b3
push 0x1026dfb3
push 0x101e69b4
push edi
mov ecx, eax
call fcn.10059250
jmp 0x100335b5
xor eax, eax
push eax
lea ecx, [ebp - 0x1c98]
mov byte [ebp - 4], 4
call fcn.1005a1c0
push 0x50
call fcn.1005d503
pop ecx
mov dword [ebp - 0x1c20], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x100335eb
push 0x101e9040
mov ecx, eax
call fcn.10059540
mov ebx, eax
jmp 0x100335ed
xor ebx, ebx
push edi
push str.version
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.1005ac50
mov ecx, dword [esi + 0x358]
call fcn.1004de53
mov dword [ebp - 0x1c20], eax
mov esi, dword [eax]
jmp 0x10033957
mov edi, dword [esi + 4]
mov eax, dword [esi]
mov dword [ebp - 0x1c24], eax
test edi, edi
je 0x10033629
lock inc dword [edi + 4]
mov dword [ebp - 0x1c34], edi
mov dword [ebp - 0x1c38], eax
push 0x50
mov byte [ebp - 4], 7
call fcn.1005d503
pop ecx
mov dword [ebp - 0x1c2c], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x10033663
push str.sign
mov ecx, eax
call fcn.10059540
mov dword [ebp - 0x1c1c], eax
jmp 0x1003366a
and dword [ebp - 0x1c1c], 0
and dword [ebp - 0x1bd0], 0
xor eax, eax
push 0x101e3668
mov byte [ebp - 4], 7
mov dword [ebp - 0x1bcc], 7
mov word [ebp - 0x1be0], ax
call fcn.100802ff
pop ecx
push eax
push 0x101e3668
lea ecx, [ebp - 0x1be0]
call fcn.100026f0
mov ecx, dword [ebp - 0x1c24]
lea eax, [ebp - 0x1be0]
push eax
lea eax, [ebp - 0x1c40]
mov byte [ebp - 4], 9
push eax
call fcn.1002992d
mov eax, dword [ebp - 0x1c40]
lea ecx, [ebp - 0x1b80]
add eax, 0x28
push eax
call fcn.10004100
push 0
push 1
lea ecx, [ebp - 0x1be0]
mov byte [ebp - 4], 0xb
call fcn.10002630
push 0xfa0
lea eax, [ebp - 0x1b68]
push 0
push eax
call fcn.10078730
push 0xbb8
lea eax, [ebp - 0xbc8]
push 0
push eax
call fcn.10078730
cmp dword [ebp - 0x1b6c], 8
lea eax, [ebp - 0x1b80]
cmovae eax, dword [ebp - 0x1b80]
push eax
lea eax, [ebp - 0x1b68]
push eax
call fcn.100802dd
lea eax, [ebp - 0xbc8]
push eax
lea eax, [ebp - 0x1b68]
push eax
call fcn.10073367
mov ecx, dword [ebp - 0x1c1c]
lea eax, [ebp - 0xbc8]
add esp, 0x28
push eax
push 0x101e8f48
call fcn.1005ac50
and dword [ebp - 0x1ba0], 0
xor eax, eax
push str.height
mov dword [ebp - 0x1b9c], 7
mov word [ebp - 0x1bb0], ax
call fcn.100802ff
pop ecx
push eax
push str.height
lea ecx, [ebp - 0x1bb0]
call fcn.100026f0
mov ecx, dword [ebp - 0x1c24]
lea eax, [ebp - 0x1bb0]
push eax
lea eax, [ebp - 0x1c48]
mov byte [ebp - 4], 0xc
push eax
call fcn.1002992d
mov eax, dword [ebp - 0x1c48]
add eax, 0x28
lea ecx, [ebp - 0x1b80]
cmp ecx, eax
je 0x100337cd
push 0xffffffffffffffff
push 0
push eax
call fcn.10002900
push 0
push 1
lea ecx, [ebp - 0x1bb0]
mov byte [ebp - 4], 0xb
call fcn.10002630
cmp dword [ebp - 0x1b6c], 8
lea eax, [ebp - 0x1b80]
cmovae eax, dword [ebp - 0x1b80]
push eax
lea eax, [ebp - 0x1b68]
push eax
call fcn.100802dd
lea eax, [ebp - 0xbc8]
push eax
lea eax, [ebp - 0x1b68]
push eax
call fcn.10073367
mov ecx, dword [ebp - 0x1c1c]
lea eax, [ebp - 0xbc8]
add esp, 0x10
push eax
push 0x101e8f50
call fcn.1005ac50
and dword [ebp - 0x1ba0], 0
xor eax, eax
push 0x101e8f70
mov dword [ebp - 0x1b9c], 7
mov word [ebp - 0x1bb0], ax
call fcn.100802ff
pop ecx
push eax
push 0x101e8f70
lea ecx, [ebp - 0x1bb0]
call fcn.100026f0
mov ecx, dword [ebp - 0x1c24]
lea eax, [ebp - 0x1bb0]
push eax
lea eax, [ebp - 0x1c50]
mov byte [ebp - 4], 0xd
push eax
call fcn.1002992d
mov eax, dword [ebp - 0x1c50]
lea ecx, [ebp - 0x1b80]
add eax, 0x28
cmp ecx, eax
je 0x1003389e
push 0xffffffffffffffff
push 0
push eax
call fcn.10002900
push 0
push 1
lea ecx, [ebp - 0x1bb0]
mov byte [ebp - 4], 0xb
call fcn.10002630
cmp dword [ebp - 0x1b6c], 8
lea eax, [ebp - 0x1b80]
cmovae eax, dword [ebp - 0x1b80]
push eax
lea eax, [ebp - 0x1b68]
push eax
call fcn.100802dd
lea eax, [ebp - 0xbc8]
push eax
lea eax, [ebp - 0x1b68]
push eax
call fcn.10073367
push 0x30
call fcn.1005d503
add esp, 0x14
mov dword [ebp - 0x1c30], eax
mov byte [ebp - 4], 0xe
test eax, eax
je 0x1003390d
lea ecx, [ebp - 0xbc8]
push ecx
mov ecx, eax
call fcn.10029c14
jmp 0x1003390f
xor eax, eax
mov ecx, dword [ebp - 0x1c1c]
push eax
mov byte [ebp - 4], 0xb
mov byte [eax + 0x2c], 1
call fcn.1005a1c0
push dword [ebp - 0x1c1c]
mov ecx, ebx
call fcn.1005a1c0
push 0
push 1
lea ecx, [ebp - 0x1b80]
call fcn.10002630
mov byte [ebp - 4], 4
test edi, edi
je 0x1003394e
mov ecx, edi
call fcn.10021e34
mov eax, dword [ebp - 0x1c20]
add esi, 8
cmp esi, dword [eax + 4]
jne 0x10033616
push ebx
lea ecx, [ebp - 0x1c98]
call fcn.1005a1c0
cmp dword [ebp - 0x1be4], 0x10
lea eax, [ebp - 0x1bf8]
lea ecx, [ebp - 0x1c98]
cmovae eax, dword [ebp - 0x1bf8]
push eax
call fcn.1005abe0
xor edi, edi
lea eax, [ebp - 0x1b98]
cmp dword [ebp - 0x1b84], 8
push edi
cmovae eax, dword [ebp - 0x1b98]
push 0x80
push 4
push edi
push 1
push connect
push eax
mov dword [ebp - 0x1c18], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100339d6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c18], eax
jmp 0x100339dc
mov eax, dword [ebp - 0x1c18]
inc eax
push eax
call fcn.1001f34a
mov ecx, dword [ebp - 0x1c18]
mov ebx, eax
inc ecx
push ecx
push edi
push ebx
call fcn.10078730
add esp, 0x10
mov dword [ebp - 0x1c28], edi
lea eax, [ebp - 0x1c28]
push edi
push eax
mov eax, dword [ebp - 0x1c18]
inc eax
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c18]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001f34a
mov ecx, dword [ebp - 0x1c18]
mov esi, eax
mov dword [ebp - 0x1c20], esi
lea ecx, [ecx*2 + 2]
push ecx
push edi
push esi
call fcn.10078730
push esi
push ebx
call fcn.10071b33
mov eax, dword [ebp - 0x1c18]
inc eax
push eax
push edi
push ebx
call fcn.10078730
mov eax, dword [ebp - 0x1c18]
lea eax, [eax*2 + 1]
push eax
call fcn.1001f34a
mov ecx, dword [ebp - 0x1c18]
mov edi, eax
lea ecx, [ecx*2 + 1]
push ecx
push 0
push edi
call fcn.10078730
lea eax, [ebp - 0x1c18]
push eax
push edi
push esi
call fcn.10073489
add esp, 0x40
lea eax, [ebp - 0x1bc8]
cmp dword [ebp - 0x1bb4], 8
cmovae eax, dword [ebp - 0x1bc8]
push 0x101e69c8
push eax
call fcn.100879dc
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10033b30
push esi
push 1
lea eax, [ebp - 0x1c11]
mov byte [ebp - 0x1c11], 0xef
push 1
push eax
call fcn.1008c4c6
push esi
push 1
lea eax, [ebp - 0x1c11]
mov byte [ebp - 0x1c11], 0xbb
push 1
push eax
call fcn.1008c4c6
push esi
push 1
lea eax, [ebp - 0x1c11]
mov byte [ebp - 0x1c11], 0xbf
push 1
push eax
call fcn.1008c4c6
mov eax, dword [ebp - 0x1c18]
push esi
dec eax
push eax
push 1
push edi
call fcn.1008c4c6
add esp, 0x40
push esi
call fcn.1008c20e
pop ecx
push ebx
call fcn.1001f39e
push dword [ebp - 0x1c20]
call fcn.1001f39e
push edi
call fcn.1001f39e
add esp, 0xc
lea eax, [ebp - 0x1b98]
cmp dword [ebp - 0x1b84], 8
cmovae eax, dword [ebp - 0x1b98]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1c98]
call fcn.10029ca9
xor ebx, ebx
lea ecx, [ebp - 0x1bf8]
push ebx
push 1
call fcn.1001d28d
push ebx
push 1
lea ecx, [ebp - 0x1b98]
call fcn.10002630
push ebx
push 1
lea ecx, [ebp - 0x1bc8]
call fcn.10002630
push ebx
push 1
lea ecx, [ebp - 0x1c10]
call fcn.10002630
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005d874
mov esp, ebp
pop ebp
ret