Function at 0x459260
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, edx
push edi
push esi
push ebx
sub esp, 0x88c
mov edx, dword [eax + 0xd8]
mov ecx, dword [eax + 0xdc]
mov dword [esp + 0x48], eax
mov eax, dword [eax + 0xd4]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ecx
test eax, eax
je 0x45929a
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
sub esp, 4
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 0xd0]
test edx, edx
je 0x459324
mov dword [esp + 0x4c], edx
mov ebx, 0x1162fe0
xor edi, edi
mov esi, 1
mov dword [esp + 0x50], ebp
mov ebp, edi
mov edi, ebx
mov ebx, eax
lea esi, [esi]
cmp edi, ebx
je 0x4592eb
mov eax, dword [edi + 0xd0]
test eax, eax
je 0x4592eb
mov ecx, dword [esp + 0x4c]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_strcmp
test eax, eax
cmove ebp, esi
add edi, 0xe0
mov eax, 0x11638a0
cmp eax, edi
jne 0x4592c8
mov edi, ebp
mov edx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x50]
mov eax, edi
test al, al
je 0x459668
mov dword [esp], edx
call fcn.00401b10
mov eax, dword [esp + 0x48]
mov dword [eax + 0xd0], 0
test ebp, ebp
je 0x459688
mov dword [esp], ebp
call sub.msvcrt.dll_strlen
lea ebx, [ebp + eax - 1]
cmp ebx, ebp
jae 0x459355
jmp 0x459769
cmp al, 0x5c
je 0x45935c
lea eax, [ebx - 1]
cmp eax, ebp
jb 0x45935f
mov ebx, eax
movzx eax, byte [ebx]
cmp al, 0x3a
jne 0x459348
add ebx, 1
mov dword [esp], ebx
add ebx, 1
xor ebp, ebp
mov esi, ebx
call sub.msvcrt.dll_atoi
mov dword [esp + 0x4c], 0
mov dword [esp + 0x54], eax
jmp 0x45938b
add ebp, 1
add esi, 1
cmp ebp, 0xf
je 0x4593d8
movzx ebx, byte [esi - 1]
test bl, bl
je 0x4593d8
cmp bl, 0x2e
je 0x4593d8
movsx edi, bl
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll_islower]
test eax, eax
je 0x4593b3
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll_toupper]
mov ebx, eax
mov byte [esp + ebp + 0x60], bl
cmp bl, 0x58
jne 0x459380
mov dword [esp], esi
add ebp, 1
add esi, 1
call sub.msvcrt.dll_atoi
mov dword [esp + 0x4c], eax
cmp ebp, 0xf
jne 0x45938b
lea esi, [esi]
nop
lea ebx, [esp + 0x70]
lea eax, [esp + 0x60]
mov byte [esp + ebp + 0x60], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_strcpy
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
add eax, ebx
mov dword [eax], 0x4e4f462e
mov byte [eax + 4], 0
mov eax, dword [0x1162fc0]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
lea eax, [esp + 0x80]
mov dword [esp + 4], 0x400
mov dword [esp], eax
call fcn.00404e10
lea eax, [esp + 0x80]
mov dword [esp + 4], eax
lea eax, [esp + 0x480]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
lea eax, [esp + 0x480]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
je 0x459688
test al, 0x10
jne 0x459688
lea eax, [esp + 0x80]
mov ebx, 0x1162fe0
mov edi, 0x11638a0
xor ebp, ebp
mov dword [esp], eax
mov esi, 1
call fcn.00401bb0
mov edx, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x50], edx
mov dword [eax + 0xd0], edx
lea esi, [esi]
nop
cmp dword [esp + 0x48], ebx
je 0x4594c5
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x4594c5
mov ecx, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_strcmp
test eax, eax
cmove ebp, esi
add ebx, 0xe0
cmp edi, ebx
jne 0x4594a0
mov eax, ebp
test al, al
je 0x459728
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1d
mov dword [esp], 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
sub esp, 0x10
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x4c]
lea eax, [esp + 0x60]
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.GDI32.dll_CreateFontA]
sub esp, 0x38
mov edx, dword [esp + 0x48]
mov dword [edx + 0xd4], eax
test esi, esi
je 0x4596a0
test edi, edi
je 0x4596a0
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
mov dword [esi + 0xd8], ecx
mov eax, esi
mov dword [esi + 0xdc], edx
call fcn.004582c0
mov eax, dword [esi + 0x78]
test eax, eax
je 0x459618
mov dword [esp + 0x18], 6
mov edx, dword [esi + 0xac]
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0xa8]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetWindowPos]
sub esp, 0x1c
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov eax, dword [esi + 0x78]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
sub esp, 0xc
cmp dword [esp + 0x48], 0x1162fe0
je 0x45975f
cmp byte [0xde84a0], 0
je 0x45965d
mov eax, dword [0x1162e60]
test eax, eax
je 0x45965d
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x58]
cmp ecx, dword [eax + 0xd8]
jne 0x459654
mov edx, dword [esp + 0x5c]
cmp edx, dword [eax + 0xdc]
je 0x45965d
mov eax, dword [esp + 0x48]
call fcn.00458c10
xor eax, eax
jmp 0x45968d
mov dword [esp], edx
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
sub esp, 4
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 0xd0]
jmp 0x45930e
mov eax, 1
add esp, 0x88c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
sub esp, 4
mov ebx, eax
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0xd4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call edi
sub esp, 8
mov esi, eax
lea eax, [esp + 0x480]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
sub esp, 8
mov dword [esp + 4], esi
mov dword [esp], ebx
call edi
sub esp, 8
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.USER32.dll_ReleaseDC]
sub esp, 8
mov eax, dword [esp + 0x494]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x480]
mov dword [esp + 0x4c], eax
jmp 0x459593
lea eax, [esp + 0x80]
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_AddFontResourceA]
sub esp, 4
test eax, eax
jne 0x4594d9
lea eax, [esp + 0x80]
mov dword [esp], str.Font_file_corrupted:_n_s_nTry_running_TomeNET_in_privileged_admin_mode_
mov dword [esp + 4], eax
call fcn.004025a0
jmp 0x4594d9
call fcn.004239d0
jmp 0x459626
lea ebx, [ebp + eax]
jmp 0x45935f