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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dcbb1
mov eax, dword fs:[0]
push eax
mov eax, 0x1c8c
call fcn.1005dc60
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.100216ee
mov ecx, eax
call fcn.1005efdf
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.100812ef
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1bc8]
call fcn.10004340
mov edi, str.LatelyCharDraw1.xml
push edi
call fcn.100812ef
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.10070cf0
pop ecx
pop ecx
lea ecx, [ebp - 0x1c98]
mov byte [ebp - 4], 3
call fcn.10059770
push 0x38
mov byte [ebp - 4], 4
call fcn.1005d806
pop ecx
mov dword [ebp - 0x1c20], eax
mov byte [ebp - 4], 5
mov edi, 0x101e89fc
test eax, eax
je 0x10033096
push 0x10270643
push 0x101e89f4
push edi
mov ecx, eax
call fcn.10059560
jmp 0x10033098
xor eax, eax
push eax
lea ecx, [ebp - 0x1c98]
mov byte [ebp - 4], 4
call fcn.1005a4d0
push 0x50
call fcn.1005d806
pop ecx
mov dword [ebp - 0x1c20], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x100330ce
push 0x101eb0ac
mov ecx, eax
call fcn.10059850
mov ebx, eax
jmp 0x100330d0
xor ebx, ebx
push edi
push str.version
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.1005af60
mov ecx, dword [esi + 0x358]
call fcn.1004de01
mov dword [ebp - 0x1c20], eax
mov esi, dword [eax]
jmp 0x1003343a
mov edi, dword [esi + 4]
mov eax, dword [esi]
mov dword [ebp - 0x1c24], eax
test edi, edi
je 0x1003310c
lock inc dword [edi + 4]
mov dword [ebp - 0x1c34], edi
mov dword [ebp - 0x1c38], eax
push 0x50
mov byte [ebp - 4], 7
call fcn.1005d806
pop ecx
mov dword [ebp - 0x1c2c], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x10033146
push str.sign
mov ecx, eax
call fcn.10059850
mov dword [ebp - 0x1c1c], eax
jmp 0x1003314d
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.100812ef
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.1002985e
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.10079700
push 0xbb8
lea eax, [ebp - 0xbc8]
push 0
push eax
call fcn.10079700
cmp dword [ebp - 0x1b6c], 8
lea eax, [ebp - 0x1b80]
cmovae eax, dword [ebp - 0x1b80]
push eax
lea eax, [ebp - 0x1b68]
push eax
call fcn.100812cd
lea eax, [ebp - 0xbc8]
push eax
lea eax, [ebp - 0x1b68]
push eax
call fcn.1007432c
mov ecx, dword [ebp - 0x1c1c]
lea eax, [ebp - 0xbc8]
add esp, 0x28
push eax
push 0x101eafb4
call fcn.1005af60
and dword [ebp - 0x1ba0], 0
xor eax, eax
push str.height
mov dword [ebp - 0x1b9c], 7
mov word [ebp - 0x1bb0], ax
call fcn.100812ef
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.1002985e
mov eax, dword [ebp - 0x1c48]
add eax, 0x28
lea ecx, [ebp - 0x1b80]
cmp ecx, eax
je 0x100332b0
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.100812cd
lea eax, [ebp - 0xbc8]
push eax
lea eax, [ebp - 0x1b68]
push eax
call fcn.1007432c
mov ecx, dword [ebp - 0x1c1c]
lea eax, [ebp - 0xbc8]
add esp, 0x10
push eax
push 0x101eafbc
call fcn.1005af60
and dword [ebp - 0x1ba0], 0
xor eax, eax
push 0x101eafdc
mov dword [ebp - 0x1b9c], 7
mov word [ebp - 0x1bb0], ax
call fcn.100812ef
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.1002985e
mov eax, dword [ebp - 0x1c50]
lea ecx, [ebp - 0x1b80]
add eax, 0x28
cmp ecx, eax
je 0x10033381
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.100812cd
lea eax, [ebp - 0xbc8]
push eax
lea eax, [ebp - 0x1b68]
push eax
call fcn.1007432c
push 0x30
call fcn.1005d806
add esp, 0x14
mov dword [ebp - 0x1c30], eax
mov byte [ebp - 4], 0xe
test eax, eax
je 0x100333f0
lea ecx, [ebp - 0xbc8]
push ecx
mov ecx, eax
call fcn.10029b45
jmp 0x100333f2
xor eax, eax
mov ecx, dword [ebp - 0x1c1c]
push eax
mov byte [ebp - 4], 0xb
mov byte [eax + 0x2c], 1
call fcn.1005a4d0
push dword [ebp - 0x1c1c]
mov ecx, ebx
call fcn.1005a4d0
push 0
push 1
lea ecx, [ebp - 0x1b80]
call fcn.10002690
mov byte [ebp - 4], 4
test edi, edi
je 0x10033431
mov ecx, edi
call fcn.10021ea6
mov eax, dword [ebp - 0x1c20]
add esi, 8
cmp esi, dword [eax + 4]
jne 0x100330f9
push ebx
lea ecx, [ebp - 0x1c98]
call fcn.1005a4d0
cmp dword [ebp - 0x1be4], 0x10
lea eax, [ebp - 0x1bf8]
lea ecx, [ebp - 0x1c98]
cmovae eax, dword [ebp - 0x1bf8]
push eax
call fcn.1005aef0
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 0x100334b9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c18], eax
jmp 0x100334bf
mov eax, dword [ebp - 0x1c18]
inc eax
push eax
call fcn.1005dc8d
mov ecx, dword [ebp - 0x1c18]
mov ebx, eax
inc ecx
push ecx
push edi
push ebx
call fcn.10079700
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.1005dc8d
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.10079700
push esi
push ebx
call fcn.10072af8
mov eax, dword [ebp - 0x1c18]
inc eax
push eax
push edi
push ebx
call fcn.10079700
mov eax, dword [ebp - 0x1c18]
lea eax, [eax*2 + 1]
push eax
call fcn.1005dc8d
mov ecx, dword [ebp - 0x1c18]
mov edi, eax
lea ecx, [ecx*2 + 1]
push ecx
push 0
push edi
call fcn.10079700
lea eax, [ebp - 0x1c18]
push eax
push edi
push esi
call fcn.1007444e
add esp, 0x40
lea eax, [ebp - 0x1bc8]
cmp dword [ebp - 0x1bb4], 8
cmovae eax, dword [ebp - 0x1bc8]
push 0x101e8a08
push eax
call fcn.100889d5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10033613
push esi
push 1
lea eax, [ebp - 0x1c11]
mov byte [ebp - 0x1c11], 0xef
push 1
push eax
call fcn.1008d49b
push esi
push 1
lea eax, [ebp - 0x1c11]
mov byte [ebp - 0x1c11], 0xbb
push 1
push eax
call fcn.1008d49b
push esi
push 1
lea eax, [ebp - 0x1c11]
mov byte [ebp - 0x1c11], 0xbf
push 1
push eax
call fcn.1008d49b
mov eax, dword [ebp - 0x1c18]
push esi
dec eax
push eax
push 1
push edi
call fcn.1008d49b
add esp, 0x40
push esi
call fcn.1008d1e3
pop ecx
push ebx
call fcn.1005d847
push dword [ebp - 0x1c20]
call fcn.1005d847
push edi
call fcn.1005d847
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.10029bf6
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.1005db7c
mov esp, ebp
pop ebp
ret