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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dcbec
mov eax, dword fs:[0]
push eax
mov eax, 0x1c8c
call fcn.1005da00
mov eax, dword [0x10288294]
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.1002165c
mov ecx, eax
call fcn.10043927
push eax
lea ecx, [ebp - 0x1c10]
call fcn.100025f0
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c10]
push eax
lea ecx, [ebp - 0x1bc8]
call fcn.10004160
lea eax, [ebp - 0x1c10]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x1b98]
call fcn.10004160
push 2
pop eax
mov edi, str.LatelyCharDraw.xml
mov byte [ebp - 4], al
push edi
call fcn.1008133f
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1bc8]
call fcn.10004340
mov edi, str.LatelyCharDraw1.xml
push edi
call fcn.1008133f
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1b98]
call fcn.10004340
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.1006163b
pop ecx
pop ecx
lea ecx, [ebp - 0x1c98]
mov byte [ebp - 4], 3
call fcn.100594e0
push 0x38
mov byte [ebp - 4], 4
call fcn.1005d5a3
pop ecx
mov dword [ebp - 0x1c20], eax
mov byte [ebp - 4], 5
mov edi, 0x101e89fc
test eax, eax
je 0x100337ab
push 0x10270653
push 0x101e89f4
push edi
mov ecx, eax
call fcn.100592d0
jmp 0x100337ad
xor eax, eax
push eax
lea ecx, [ebp - 0x1c98]
mov byte [ebp - 4], 4
call fcn.1005a240
push 0x50
call fcn.1005d5a3
pop ecx
mov dword [ebp - 0x1c20], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x100337e3
push 0x101eb0ac
mov ecx, eax
call fcn.100595c0
mov ebx, eax
jmp 0x100337e5
xor ebx, ebx
push edi
push str.version
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.1005acd0
mov ecx, dword [esi + 0x358]
call fcn.1004dcff
mov dword [ebp - 0x1c20], eax
mov esi, dword [eax]
jmp 0x10033b4f
mov edi, dword [esi + 4]
mov eax, dword [esi]
mov dword [ebp - 0x1c24], eax
test edi, edi
je 0x10033821
lock inc dword [edi + 4]
mov dword [ebp - 0x1c34], edi
mov dword [ebp - 0x1c38], eax
push 0x50
mov byte [ebp - 4], 7
call fcn.1005d5a3
pop ecx
mov dword [ebp - 0x1c2c], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x1003385b
push str.sign
mov ecx, eax
call fcn.100595c0
mov dword [ebp - 0x1c1c], eax
jmp 0x10033862
and dword [ebp - 0x1c1c], 0
and dword [ebp - 0x1bd0], 0
xor eax, eax
push 0x101e56a8
mov byte [ebp - 4], 7
mov dword [ebp - 0x1bcc], 7
mov word [ebp - 0x1be0], ax
call fcn.1008133f
pop ecx
push eax
push 0x101e56a8
lea ecx, [ebp - 0x1be0]
call fcn.10002750
mov ecx, dword [ebp - 0x1c24]
lea eax, [ebp - 0x1be0]
push eax
lea eax, [ebp - 0x1c40]
mov byte [ebp - 4], 9
push eax
call fcn.10029758
mov eax, dword [ebp - 0x1c40]
lea ecx, [ebp - 0x1b80]
add eax, 0x28
push eax
call fcn.10004160
push 0
push 1
lea ecx, [ebp - 0x1be0]
mov byte [ebp - 4], 0xb
call fcn.10002690
push 0xfa0
lea eax, [ebp - 0x1b68]
push 0
push eax
call fcn.10079740
push 0xbb8
lea eax, [ebp - 0xbc8]
push 0
push eax
call fcn.10079740
cmp dword [ebp - 0x1b6c], 8
lea eax, [ebp - 0x1b80]
cmovae eax, dword [ebp - 0x1b80]
push eax
lea eax, [ebp - 0x1b68]
push eax
call fcn.1008131d
lea eax, [ebp - 0xbc8]
push eax
lea eax, [ebp - 0x1b68]
push eax
call fcn.10074165
mov ecx, dword [ebp - 0x1c1c]
lea eax, [ebp - 0xbc8]
add esp, 0x28
push eax
push 0x101eafb4
call fcn.1005acd0
and dword [ebp - 0x1ba0], 0
xor eax, eax
push str.height
mov dword [ebp - 0x1b9c], 7
mov word [ebp - 0x1bb0], ax
call fcn.1008133f
pop ecx
push eax
push str.height
lea ecx, [ebp - 0x1bb0]
call fcn.10002750
mov ecx, dword [ebp - 0x1c24]
lea eax, [ebp - 0x1bb0]
push eax
lea eax, [ebp - 0x1c48]
mov byte [ebp - 4], 0xc
push eax
call fcn.10029758
mov eax, dword [ebp - 0x1c48]
add eax, 0x28
lea ecx, [ebp - 0x1b80]
cmp ecx, eax
je 0x100339c5
push 0xffffffffffffffff
push 0
push eax
call fcn.10002960
push 0
push 1
lea ecx, [ebp - 0x1bb0]
mov byte [ebp - 4], 0xb
call fcn.10002690
cmp dword [ebp - 0x1b6c], 8
lea eax, [ebp - 0x1b80]
cmovae eax, dword [ebp - 0x1b80]
push eax
lea eax, [ebp - 0x1b68]
push eax
call fcn.1008131d
lea eax, [ebp - 0xbc8]
push eax
lea eax, [ebp - 0x1b68]
push eax
call fcn.10074165
mov ecx, dword [ebp - 0x1c1c]
lea eax, [ebp - 0xbc8]
add esp, 0x10
push eax
push 0x101eafbc
call fcn.1005acd0
and dword [ebp - 0x1ba0], 0
xor eax, eax
push 0x101eafdc
mov dword [ebp - 0x1b9c], 7
mov word [ebp - 0x1bb0], ax
call fcn.1008133f
pop ecx
push eax
push 0x101eafdc
lea ecx, [ebp - 0x1bb0]
call fcn.10002750
mov ecx, dword [ebp - 0x1c24]
lea eax, [ebp - 0x1bb0]
push eax
lea eax, [ebp - 0x1c50]
mov byte [ebp - 4], 0xd
push eax
call fcn.10029758
mov eax, dword [ebp - 0x1c50]
lea ecx, [ebp - 0x1b80]
add eax, 0x28
cmp ecx, eax
je 0x10033a96
push 0xffffffffffffffff
push 0
push eax
call fcn.10002960
push 0
push 1
lea ecx, [ebp - 0x1bb0]
mov byte [ebp - 4], 0xb
call fcn.10002690
cmp dword [ebp - 0x1b6c], 8
lea eax, [ebp - 0x1b80]
cmovae eax, dword [ebp - 0x1b80]
push eax
lea eax, [ebp - 0x1b68]
push eax
call fcn.1008131d
lea eax, [ebp - 0xbc8]
push eax
lea eax, [ebp - 0x1b68]
push eax
call fcn.10074165
push 0x30
call fcn.1005d5a3
add esp, 0x14
mov dword [ebp - 0x1c30], eax
mov byte [ebp - 4], 0xe
test eax, eax
je 0x10033b05
lea ecx, [ebp - 0xbc8]
push ecx
mov ecx, eax
call fcn.10029a3f
jmp 0x10033b07
xor eax, eax
mov ecx, dword [ebp - 0x1c1c]
push eax
mov byte [ebp - 4], 0xb
mov byte [eax + 0x2c], 1
call fcn.1005a240
push dword [ebp - 0x1c1c]
mov ecx, ebx
call fcn.1005a240
push 0
push 1
lea ecx, [ebp - 0x1b80]
call fcn.10002690
mov byte [ebp - 4], 4
test edi, edi
je 0x10033b46
mov ecx, edi
call fcn.10021ddf
mov eax, dword [ebp - 0x1c20]
add esi, 8
cmp esi, dword [eax + 4]
jne 0x1003380e
push ebx
lea ecx, [ebp - 0x1c98]
call fcn.1005a240
cmp dword [ebp - 0x1be4], 0x10
lea eax, [ebp - 0x1bf8]
lea ecx, [ebp - 0x1c98]
cmovae eax, dword [ebp - 0x1bf8]
push eax
call fcn.1005ac60
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 closesocket
push eax
mov dword [ebp - 0x1c18], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10033bce
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c18], eax
jmp 0x10033bd4
mov eax, dword [ebp - 0x1c18]
inc eax
push eax
call fcn.1005da2d
mov ecx, dword [ebp - 0x1c18]
mov ebx, eax
inc ecx
push ecx
push edi
push ebx
call fcn.10079740
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.1005da2d
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.10079740
push esi
push ebx
call fcn.10072931
mov eax, dword [ebp - 0x1c18]
inc eax
push eax
push edi
push ebx
call fcn.10079740
mov eax, dword [ebp - 0x1c18]
lea eax, [eax*2 + 1]
push eax
call fcn.1005da2d
mov ecx, dword [ebp - 0x1c18]
mov edi, eax
lea ecx, [ecx*2 + 1]
push ecx
push 0
push edi
call fcn.10079740
lea eax, [ebp - 0x1c18]
push eax
push edi
push esi
call fcn.10074287
add esp, 0x40
lea eax, [ebp - 0x1bc8]
cmp dword [ebp - 0x1bb4], 8
cmovae eax, dword [ebp - 0x1bc8]
push 0x101e8a08
push eax
call fcn.10088a1c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10033d28
push esi
push 1
lea eax, [ebp - 0x1c11]
mov byte [ebp - 0x1c11], 0xef
push 1
push eax
call fcn.1008d506
push esi
push 1
lea eax, [ebp - 0x1c11]
mov byte [ebp - 0x1c11], 0xbb
push 1
push eax
call fcn.1008d506
push esi
push 1
lea eax, [ebp - 0x1c11]
mov byte [ebp - 0x1c11], 0xbf
push 1
push eax
call fcn.1008d506
mov eax, dword [ebp - 0x1c18]
push esi
dec eax
push eax
push 1
push edi
call fcn.1008d506
add esp, 0x40
push esi
call fcn.1008d24e
pop ecx
push ebx
call fcn.1005d5e4
push dword [ebp - 0x1c20]
call fcn.1005d5e4
push edi
call fcn.1005d5e4
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.10029b18
xor ebx, ebx
lea ecx, [ebp - 0x1bf8]
push ebx
push 1
call fcn.1001d2c0
push ebx
push 1
lea ecx, [ebp - 0x1b98]
call fcn.10002690
push ebx
push 1
lea ecx, [ebp - 0x1bc8]
call fcn.10002690
push ebx
push 1
lea ecx, [ebp - 0x1c10]
call fcn.10002690
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.1005d919
mov esp, ebp
pop ebp
ret