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

Disassembly:
push ebp
lea ebp, [esp - 0x1be8]
mov eax, 0x1be8
call fcn.10072c80
push 0xffffffffffffffff
push 0x100cc4d0
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x1011ac70]
xor eax, ebp
mov dword [ebp + 0x1be4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.10004c83
mov ecx, eax
call fcn.10048b8f
push eax
lea ecx, [ebp]
call fcn.100015f0
lea eax, [ebp]
xor ebx, ebx
push eax
lea ecx, [ebp + 0x38]
mov dword [ebp - 4], ebx
call fcn.10003510
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 1
call fcn.10003510
push str.LatelyCharDraw.xml
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 2
call fcn.10003620
push 0x100d5200
lea ecx, [ebp + 0x70]
call fcn.10003620
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x10005f78
lea eax, [ebp + 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
cmp dword [ebp + 0x88], 8
mov eax, dword [ebp + 0x74]
jae 0x10005f90
lea eax, [ebp + 0x74]
push eax
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.1001eb80
pop ecx
pop ecx
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 3
call fcn.1004b850
push 0x38
mov byte [ebp - 4], 4
call fcn.1004ed11
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
mov byte [ebp - 4], 5
mov esi, 0x100d51fc
je 0x10005fe1
push 0x10102ef4
push 0x100d51f4
push esi
mov ecx, eax
call fcn.1004bf50
jmp 0x10005fe3
xor eax, eax
push eax
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 4
call fcn.1004ace0
push 0x50
call fcn.1004ed11
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
mov byte [ebp - 4], 6
je 0x10006017
push 0x100d51ec
mov ecx, eax
call fcn.1004c440
mov dword [ebp - 0x14], eax
jmp 0x1000601a
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x14]
push esi
push 0x100d51e4
mov byte [ebp - 4], 4
call fcn.1004c620
mov ecx, dword [edi + 0x35c]
call fcn.10014cd3
mov edi, eax
mov eax, dword [edi + 4]
push edi
push eax
lea ecx, [ebp - 0x24]
call fcn.100204a1
jmp 0x1000628c
lea ecx, [ebp - 0x24]
call fcn.1000ce84
mov esi, dword [eax]
push 0x50
call fcn.1004ed11
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
mov byte [ebp - 4], 7
je 0x10006079
push str.sign
mov ecx, eax
call fcn.1004c440
mov dword [ebp - 0x1c], eax
jmp 0x1000607c
mov dword [ebp - 0x1c], ebx
push 0x100d5124
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 4
call fcn.100015f0
mov eax, dword [esi]
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp + 0x54]
push ecx
mov ecx, esi
mov byte [ebp - 4], 8
call dword [eax + 0x18]
push ebx
push 1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xa
call fcn.100017f0
push 0xf9e
lea eax, [ebp + 0xc46]
push ebx
push eax
mov word [ebp + 0xc44], bx
call fcn.10072750
push 0xbb7
lea eax, [ebp + 0x8d]
push ebx
push eax
mov byte [ebp + 0x8c], bl
call fcn.10072750
mov eax, dword [ebp + 0x58]
add esp, 0x18
cmp dword [ebp + 0x6c], 8
jae 0x100060f8
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0xc44]
push eax
call fcn.10072c5d
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp + 0xc44]
push eax
call fcn.1001cd11
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
lea eax, [ebp + 0x8c]
push eax
push str.name
call fcn.1004c620
push 0x100d5114
lea ecx, [ebp - 0x50]
call fcn.100015f0
mov eax, dword [esi]
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
mov ecx, esi
mov byte [ebp - 4], 0xb
call dword [eax + 0x18]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 0xc
call fcn.10001d60
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.100017f0
push ebx
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xa
call fcn.100017f0
cmp dword [ebp + 0x6c], 8
mov eax, dword [ebp + 0x58]
jae 0x10006185
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0xc44]
push eax
call fcn.10072c5d
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp + 0xc44]
push eax
call fcn.1001cd11
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
lea eax, [ebp + 0x8c]
push eax
push str.height
call fcn.1004c620
push str.content
lea ecx, [ebp - 0x50]
call fcn.100015f0
mov eax, dword [esi]
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
mov ecx, esi
mov byte [ebp - 4], 0xd
call dword [eax + 0x18]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 0xe
call fcn.10001d60
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.100017f0
push ebx
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xa
call fcn.100017f0
cmp dword [ebp + 0x6c], 8
mov eax, dword [ebp + 0x58]
jae 0x10006212
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0xc44]
push eax
call fcn.10072c5d
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp + 0xc44]
push eax
call fcn.1001cd11
push 0x30
call fcn.1004ed11
add esp, 0x14
mov dword [ebp - 0x34], eax
cmp eax, ebx
mov byte [ebp - 4], 0xf
je 0x10006257
lea ecx, [ebp + 0x8c]
push ecx
mov ecx, eax
call fcn.100048eb
jmp 0x10006259
xor eax, eax
mov ecx, dword [ebp - 0x1c]
push eax
mov byte [ebp - 4], 0xa
mov byte [eax + 0x2c], 1
call fcn.1004ace0
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
call fcn.1004ace0
push ebx
push 1
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 4
call fcn.100017f0
lea ecx, [ebp - 0x24]
call fcn.1001534a
mov eax, dword [edi + 8]
push edi
push eax
lea ecx, [ebp - 0x2c]
call fcn.100204a1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
call fcn.1003fd71
test al, al
je 0x1000604b
push dword [ebp - 0x14]
lea ecx, [ebp - 0xd0]
call fcn.1004ace0
cmp dword [ebp + 0x34], 0x10
mov eax, dword [ebp + 0x20]
jae 0x100062c7
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0xd0]
call fcn.1004bbe0
cmp dword [ebp + 0x88], 8
mov eax, dword [ebp + 0x74]
mov dword [ebp - 0x18], ebx
jae 0x100062e5
lea eax, [ebp + 0x74]
push ebx
push 0x80
push 4
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000630e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
inc eax
push eax
call fcn.1004ed41
mov esi, eax
mov eax, dword [ebp - 0x18]
inc eax
push eax
push ebx
push esi
call fcn.10072750
add esp, 0x10
push ebx
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x18]
inc eax
push eax
push esi
push edi
mov dword [ebp - 0x30], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1004ed41
mov edi, eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax + 2]
push eax
push ebx
push edi
call fcn.10072750
push edi
push esi
call fcn.1001cce8
mov eax, dword [ebp - 0x18]
inc eax
push eax
push ebx
push esi
call fcn.10072750
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax + 1]
push eax
call fcn.1004ed41
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx + ecx + 1]
push ecx
push ebx
push eax
mov dword [ebp - 0x1c], eax
call fcn.10072750
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
push edi
call fcn.1001cd3f
mov eax, dword [ebp + 0x3c]
add esp, 0x40
cmp dword [ebp + 0x50], 8
jae 0x100063bc
lea eax, [ebp + 0x3c]
push 0x100d51c4
push eax
call fcn.10072c20
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
je 0x10006428
push eax
push 1
lea eax, [ebp - 0xd]
push 1
push eax
mov byte [ebp - 0xd], 0xef
call fcn.10072ad8
push dword [ebp - 0x14]
lea eax, [ebp - 0xd]
push 1
push 1
push eax
mov byte [ebp - 0xd], 0xbb
call fcn.10072ad8
push dword [ebp - 0x14]
lea eax, [ebp - 0xd]
push 1
push 1
push eax
mov byte [ebp - 0xd], 0xbf
call fcn.10072ad8
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
dec eax
push eax
push 1
push dword [ebp - 0x1c]
call fcn.10072ad8
add esp, 0x40
push dword [ebp - 0x14]
call fcn.100728fd
pop ecx
push esi
call fcn.1004ed3c
push edi
call fcn.1004ed3c
push dword [ebp - 0x1c]
call fcn.1004ed3c
mov eax, dword [ebp + 0x74]
add esp, 0xc
cmp dword [ebp + 0x88], 8
jae 0x1000644e
lea eax, [ebp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 3
call fcn.10004d97
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp + 0x1c]
call fcn.10001770
push ebx
push esi
lea ecx, [ebp + 0x70]
call fcn.100017f0
push ebx
push esi
lea ecx, [ebp + 0x38]
call fcn.100017f0
push ebx
push esi
lea ecx, [ebp]
call fcn.100017f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1be4]
xor ecx, ebp
call fcn.10071fee
add ebp, 0x1be8
leave
ret