Function at 0x10003b40
Capabilities:
Get common file path
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc6c
mov eax, dword [0x1001f0e0]
xor eax, esp
mov dword [esp + 0xc68], eax
mov eax, dword [esp + 0xc70]
push ebx
mov ebx, dword [esp + 0xc80]
push ebp
mov ebp, dword [esp + 0xc88]
push esi
mov esi, dword [esp + 0xc80]
push edi
mov edi, dword [esp + 0xc88]
push 0x200
lea ecx, [esp + 0x27c]
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x10018208
lea edx, [esp + 0x27c]
push 0x200
push edx
call fcn.1000b945
lea eax, [esp + 0x284]
push eax
lea ecx, [esp + 0x688]
push 0x200
push ecx
call fcn.1000b3fd
lea edx, [esp + 0x290]
push edx
lea eax, [esp + 0xa94]
push 0x200
push eax
call fcn.1000b3fd
add esp, 0x24
mov eax, 3
mov cl, 0x5c
nop
cmp byte [esp + eax + 0x278], cl
je 0x10003c03
inc eax
cmp eax, 0x200
jl 0x10003bf0
jmp 0x10003c0b
mov byte [esp + eax + 0x279], 0
lea ecx, [esp + 0x278]
push ecx
lea edx, [esp + 0x87c]
push 0x200
push edx
call fcn.1000b3fd
lea eax, [esp + 0x284]
push eax
lea ecx, [esp + 0x488]
push 0x200
push ecx
call fcn.1000b3fd
push str.fonts_
lea edx, [esp + 0x494]
push 0x200
push edx
call fcn.1000b945
push esi
lea eax, [esp + 0x6a0]
push 0x200
push eax
call fcn.1000b945
push edi
lea ecx, [esp + 0x8ac]
push 0x200
push ecx
call fcn.1000b945
push ebx
lea edx, [esp + 0xab8]
push 0x200
push edx
call fcn.1000b945
add esp, 0x48
push ebp
lea eax, [esp + 0x47c]
push 0x200
push eax
call fcn.1000b945
add esp, 0xc
push 4
push 0x1000
push 0x400
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
mov esi, eax
call fcn.1000b589
push eax
call fcn.1000bad0
add esp, 8
jmp 0x10003cd4
jmp 0x10003dde
xor ebx, ebx
push ebx
push 0x8000080
push 3
push ebx
push 3
push 0x80000000
lea ecx, [esp + 0x690]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10003e4f
jmp 0x10003e10
inc ebx
cmp ebx, 3
jg 0x100042df
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
lea edx, [esp + 0x690]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10003e10
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x28]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ebx, ebx
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x400
push esi
push edi
call ebp
test eax, eax
jne 0x10003eb6
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
inc ebx
cmp ebx, 3
jg 0x10003eb6
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x400
push esi
push edi
call ebp
test eax, eax
je 0x10003e87
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edi, byte [esi + 0xe1]
xor eax, eax
mov ecx, esi
jmp 0x10003ed0
movzx edx, byte [eax + 0x10020d68]
add edx, edi
cmp byte [ecx], dl
jne 0x10003eeb
inc eax
add ecx, 5
cmp eax, 0x14
jl 0x10003ed0
or edi, 0xffffffff
jmp 0x10003ef2
or edi, 0xffffffff
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x20]
push 0x10
push 0x200
lea eax, [esp + 0x80]
push eax
push 0
push ecx
call fcn.1000bab1
add esp, 0x14
xor eax, eax
lea ecx, [esi + 0x332]
jmp 0x10003f20
movsx edx, byte [esp + eax + 0x78]
movzx ebx, byte [ecx]
cmp ebx, edx
jne 0x10003f37
inc eax
add ecx, 2
cmp eax, 4
jl 0x10003f20
jmp 0x10003f3b
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x24]
push 0x10
push 0x200
lea eax, [esp + 0x80]
push eax
push 0
push ecx
call fcn.1000bab1
add esp, 0x14
xor eax, eax
lea ecx, [esi + 0x396]
movsx edx, byte [esp + eax + 0x78]
movzx ebx, byte [ecx]
cmp ebx, edx
jne 0x10003f78
inc eax
add ecx, 2
cmp eax, 4
jl 0x10003f61
jmp 0x10003f7c
mov dword [esp + 0x10], edi
mov eax, 0x10020d68
xor ebx, ebx
sub eax, dword [esp + 0x14]
mov ebp, esi
mov dword [esp + 0x1c], eax
lea ecx, [ecx]
mov eax, dword [esp + 0x14]
lea edi, [eax + ebx]
call fcn.1000bae2
imul byte [esp + 0x10]
mov ecx, dword [esp + 0x1c]
sub al, byte [ecx + edi]
add ebp, 5
sub al, byte [esi + 0xe1]
add al, bl
add al, byte [ebp - 5]
inc ebx
inc al
cmp ebx, 0xa
mov byte [edi], al
jl 0x10003f90
xor ecx, ecx
xor eax, eax
movzx edx, byte [esi + eax]
inc eax
add ecx, edx
cmp eax, 0x3ff
jl 0x10003fc3
cmp byte [esi + 0x3ff], cl
je 0x10003fe1
mov dword [esp + 0x10], 0xffffffff
movzx ecx, byte [esi + 0x1c7]
mov eax, dword [esp + 0x14]
mov byte [eax + 0xb], cl
mov dl, byte [esi + 0x1d3]
mov byte [eax + 0xc], dl
movzx ecx, byte [esi + 0x1df]
lea edx, [esp + 0x50]
push edx
mov byte [eax + 0xd], cl
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, byte [esi + 0x25d]
movzx edx, byte [esi + 0x25f]
mov ecx, 0x100
imul ax, cx
add ax, dx
mov word [esp + 0x28], ax
movzx eax, byte [esi + 0x261]
mov ebp, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov word [esp + 0x2a], ax
movzx ecx, byte [esi + 0x263]
mov word [esp + 0x2e], cx
movzx edx, byte [esi + 0x265]
mov word [esp + 0x30], dx
movzx eax, byte [esi + 0x267]
mov word [esp + 0x32], ax
movzx ecx, byte [esi + 0x269]
lea eax, [esp + 0x40]
mov word [esp + 0x34], cx
push eax
lea ecx, [esp + 0x54]
xor edx, edx
push ecx
mov word [esp + 0x3e], dx
call ebp
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x2c]
push eax
call ebp
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push 0
sub edi, eax
push 0x23c34600
sbb ebx, ecx
push ebx
push edi
call fcn.1000bb20
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ebp, ebp
push ebp
push 0x8000080
push 3
push ebp
push 3
push 0x80000000
lea ecx, [esp + 0x890]
push ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x10004115
inc ebp
cmp ebp, 3
jg 0x100042df
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
lea edx, [esp + 0x890]
push edx
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x100040e0
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x28]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x400
push esi
push edi
call ebp
test eax, eax
jne 0x10004182
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
inc ebx
cmp ebx, 3
jg 0x10004182
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x400
push esi
push edi
call ebp
test eax, eax
je 0x10004153
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edi, byte [esi + 0xe1]
xor eax, eax
mov ecx, esi
movzx edx, byte [eax + 0x10020d68]
add edx, edi
cmp byte [ecx], dl
jne 0x100041af
inc eax
add ecx, 7
cmp eax, 0x14
jl 0x10004194
or edi, 0xffffffff
jmp 0x100041b6
or edi, 0xffffffff
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x20]
push 0x10
push 0x200
lea eax, [esp + 0x80]
push eax
push 0
push ecx
call fcn.1000bab1
add esp, 0x14
xor eax, eax
lea ecx, [esi + 0x320]
lea esp, [esp]
movsx edx, byte [esp + eax + 0x78]
movzx ebx, byte [ecx]
cmp ebx, edx
jne 0x100041f7
inc eax
add ecx, 2
cmp eax, 4
jl 0x100041e0
jmp 0x100041fb
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x24]
push 0x10
push 0x200
lea eax, [esp + 0x80]
push eax
push 0
push ecx
call fcn.1000bab1
add esp, 0x14
xor eax, eax
lea ecx, [esi + 0x384]
movsx edx, byte [esp + eax + 0x78]
movzx ebx, byte [ecx]
cmp ebx, edx
jne 0x100042cd
inc eax
add ecx, 2
cmp eax, 4
jl 0x10004221
cmp dword [esp + 0x10], 0
jne 0x1000424b
mov dword [0x100215a8], 1
cmp dword [esp + 0x4c], 0
jl 0x10004262
jg 0x1000425e
cmp dword [esp + 0x48], 0x5460
jbe 0x10004262
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
mov ebx, esi
mov ebp, 0xa
lea ecx, [ecx]
call fcn.1000bae2
imul byte [esp + 0x10]
mov ecx, dword [esp + 0x1c]
sub al, byte [edi + ecx]
add ebx, 7
sub al, byte [esi + 0xe1]
inc edi
add al, byte [ebx - 7]
add byte [edi - 1], al
sub ebp, 1
jne 0x10004270
xor ecx, ecx
xor eax, eax
lea esp, [esp]
movzx edx, byte [esi + eax]
inc eax
add ecx, edx
cmp eax, 0x3ff
jl 0x100042a0
cmp byte [esi + 0x3ff], cl
jne 0x100042df
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x100042d6
mov dword [0x1001f018], 1
jmp 0x100048a1
mov dword [esp + 0x10], edi
jmp 0x1000424b
cmp eax, 0xffffffff
jne 0x10004905
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor eax, eax
push eax
push 0x8000080
push 3
push eax
push 3
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
push 0x80000000
lea eax, [esp + 0xa90]
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000434f
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 3
mov dword [esp + 0x1c], eax
jg 0x10004886
push 0xa
call ebp
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
lea ecx, [esp + 0xa90]
push ecx
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x10004316
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ebx, ebx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0x400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100043bf
jmp 0x10004390
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
inc ebx
cmp ebx, 3
jg 0x100043bf
push 0xa
call ebp
push 0
lea eax, [esp + 0x1c]
push eax
push 0x400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10004390
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edi, byte [esi + 0xe1]
xor eax, eax
mov ecx, esi
movzx edx, byte [eax + 0x10020d68]
add edx, edi
cmp byte [ecx], dl
jne 0x100043ec
inc eax
add ecx, 5
cmp eax, 0x14
jl 0x100043d1
or edi, 0xffffffff
jmp 0x100043f3
or edi, 0xffffffff
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x20]
push 0x10
push 0x200
lea eax, [esp + 0x80]
push eax
push 0
push ecx
call fcn.1000bab1
add esp, 0x14
xor eax, eax
lea ecx, [esi + 0x332]
lea esp, [esp]
movsx edx, byte [esp + eax + 0x78]
movzx ebx, byte [ecx]
cmp ebx, edx
jne 0x10004437
inc eax
add ecx, 2
cmp eax, 4
jl 0x10004420
jmp 0x1000443b
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x24]
push 0x10
push 0x200
lea eax, [esp + 0x80]
push eax
push 0
push ecx
call fcn.1000bab1
add esp, 0x14
xor eax, eax
lea ecx, [esi + 0x396]
movsx edx, byte [esp + eax + 0x78]
movzx ebx, byte [ecx]
cmp ebx, edx
jne 0x10004478
inc eax
add ecx, 2
cmp eax, 4
jl 0x10004461
jmp 0x1000447c
mov dword [esp + 0x10], edi
mov eax, 0x10020d68
xor ebx, ebx
sub eax, dword [esp + 0x14]
mov ebp, esi
mov dword [esp + 0x1c], eax
lea ecx, [ecx]
mov eax, dword [esp + 0x14]
lea edi, [eax + ebx]
call fcn.1000bae2
imul byte [esp + 0x10]
mov ecx, dword [esp + 0x1c]
sub al, byte [ecx + edi]
add ebp, 5
sub al, byte [esi + 0xe1]
add al, byte [ebp - 5]
add al, bl
inc al
inc ebx
cmp ebx, 0xa
mov byte [edi], al
jl 0x10004490
xor ecx, ecx
xor eax, eax
movzx edx, byte [esi + eax]
inc eax
add ecx, edx
cmp eax, 0x3ff
jl 0x100044c3
cmp byte [esi + 0x3ff], cl
je 0x100044e1
mov dword [esp + 0x10], 0xffffffff
cmp dword [0x100215a8], 1
mov edi, dword [esp + 0x14]
jne 0x100045b4
movzx eax, byte [edi + 0xb]
movzx edx, byte [edi + 0xc]
mov ecx, 0x7d0
add ax, cx
mov word [esp + 0x50], ax
movzx eax, byte [edi + 0xd]
mov word [esp + 0x52], dx
mov word [esp + 0x56], ax
mov ebp, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
xor edx, edx
xor ecx, ecx
mov word [esp + 0x5a], dx
mov word [esp + 0x58], cx
xor eax, eax
mov word [esp + 0x5c], ax
mov word [esp + 0x5e], cx
movzx edx, byte [esi + 0x1c7]
mov eax, 0x7d0
add dx, ax
mov word [esp + 0x28], dx
movzx cx, byte [esi + 0x1d3]
mov word [esp + 0x2a], cx
movzx edx, byte [esi + 0x1df]
xor ecx, ecx
mov word [esp + 0x2e], dx
xor edx, edx
mov word [esp + 0x32], cx
lea ecx, [esp + 0x40]
mov word [esp + 0x34], dx
xor eax, eax
push ecx
lea edx, [esp + 0x54]
push edx
mov word [esp + 0x38], ax
mov word [esp + 0x3e], ax
call ebp
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x78], eax
call ebp
cmp ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
jg 0x100045d5
jl 0x100045ba
cmp dword [esp + 0x70], eax
ja 0x100045d5
jmp 0x100045ba
mov ebp, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov al, byte [esi + 0x1c7]
mov byte [edi + 0xb], al
mov cl, byte [esi + 0x1d3]
mov byte [edi + 0xc], cl
mov dl, byte [esi + 0x1df]
mov byte [edi + 0xd], dl
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx ecx, byte [esi + 0x25d]
movzx eax, byte [esi + 0x25f]
mov edx, 0x100
imul cx, dx
add cx, ax
mov word [esp + 0x28], cx
movzx ecx, byte [esi + 0x261]
mov word [esp + 0x2a], cx
movzx edx, byte [esi + 0x263]
mov word [esp + 0x2e], dx
movzx eax, byte [esi + 0x265]
mov word [esp + 0x30], ax
movzx ecx, byte [esi + 0x267]
mov word [esp + 0x32], cx
movzx edx, byte [esi + 0x269]
lea ecx, [esp + 0x40]
mov word [esp + 0x34], dx
push ecx
lea edx, [esp + 0x54]
xor eax, eax
push edx
mov word [esp + 0x3e], ax
call ebp
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2c]
push ecx
call ebp
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push 0
sub edi, eax
push 0x23c34600
sbb ebx, ecx
push ebx
push edi
call fcn.1000bb20
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ebp, ebp
push ebp
push 0x8000080
push 3
push ebp
push 3
mov dword [esp + 0x60], edx
push 0x80000000
lea edx, [esp + 0x490]
push edx
mov dword [esp + 0x64], eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x100046e5
lea ecx, [ecx]
inc ebp
cmp ebp, 3
jg 0x10004886
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
lea eax, [esp + 0x490]
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x100046b0
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x400
push esi
push edi
call ebp
test eax, eax
jne 0x10004752
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
inc ebx
cmp ebx, 3
jg 0x10004752
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea edx, [esp + 0x1c]
push edx
push 0x400
push esi
push edi
call ebp
test eax, eax
je 0x10004723
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edi, byte [esi + 0xe1]
xor eax, eax
mov ecx, esi
movzx edx, byte [eax + 0x10020d68]
add edx, edi
cmp byte [ecx], dl
jne 0x1000477f
inc eax
add ecx, 7
cmp eax, 0x14
jl 0x10004764
or edi, 0xffffffff
jmp 0x10004786
or edi, 0xffffffff
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x20]
push 0x10
push 0x200
lea eax, [esp + 0x80]
push eax
push 0
push ecx
call fcn.1000bab1
add esp, 0x14
xor eax, eax
lea ecx, [esi + 0x320]
lea esp, [esp]
movsx edx, byte [esp + eax + 0x78]
movzx ebx, byte [ecx]
cmp ebx, edx
jne 0x100047c7
inc eax
add ecx, 2
cmp eax, 4
jl 0x100047b0
jmp 0x100047cb
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x24]
push 0x10
push 0x200
lea eax, [esp + 0x80]
push eax
push 0
push ecx
call fcn.1000bab1
add esp, 0x14
xor eax, eax
lea ecx, [esi + 0x384]
movsx edx, byte [esp + eax + 0x78]
movzx ebx, byte [ecx]
cmp ebx, edx
jne 0x10004808
inc eax
add ecx, 2
cmp eax, 4
jl 0x100047f1
jmp 0x1000480c
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x4c]
test eax, eax
jl 0x10004824
jg 0x10004820
cmp dword [esp + 0x48], 0xb40
jbe 0x10004824
mov dword [esp + 0x10], edi
cmp eax, edi
jg 0x10004838
jl 0x10004834
cmp dword [esp + 0x48], 0xfffff4c0
jae 0x10004838
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
mov ebx, esi
mov ebp, 0xa
call fcn.1000bae2
imul byte [esp + 0x10]
mov ecx, dword [esp + 0x1c]
sub al, byte [ecx + edi]
add ebx, 7
sub al, byte [esi + 0xe1]
inc edi
add al, byte [ebx - 7]
add byte [edi - 1], al
sub ebp, 1
jne 0x10004843
xor ecx, ecx
xor eax, eax
lea esp, [esp]
movzx edx, byte [esi + eax]
inc eax
add ecx, edx
cmp eax, 0x3ff
jl 0x10004870
cmp byte [esi + 0x3ff], cl
je 0x10004890
mov dword [esp + 0x10], 0xffffffff
jmp 0x1000490c
cmp dword [esp + 0x10], 0
jne 0x10004905
mov dword [0x1001f018], 2
mov dword [esp + 0x10], 0xfffffff8
mov edi, dword [esp + 0x14]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
lea ecx, [ecx]
dec byte [edi + eax]
inc eax
cmp eax, 0xa
jl 0x100048c0
mov ecx, dword [esp + 0x10]
cmp ecx, 0xffffffff
jne 0x100048ea
xor eax, eax
mov dword [edi + 0xe], eax
mov dword [edi + 0x12], eax
mov dword [edi + 0x16], eax
mov dword [edi + 0x1a], eax
mov dword [edi + 0x1e], eax
mov dword [edi + 0x22], eax
mov word [edi + 0x26], ax
pop edi
pop esi
mov eax, ecx
mov ecx, dword [esp + 0xc70]
pop ebp
pop ebx
xor ecx, esp
call fcn.1000bb04
add esp, 0xc6c
ret
cmp dword [esp + 0x10], 0xffffffff
jne 0x100048a9
xor edi, edi
mov edi, edi
call fcn.1000bae2
mov ecx, dword [esp + 0x14]
mov byte [ecx + edi], al
inc edi
cmp edi, 0xa
jl 0x10004910
mov edi, ecx
jmp 0x100048ad