Function at 0x445d80
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x501e38
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x526b8c]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov edi, dword [esp + 0x40]
cmp edi, ebx
je 0x4460a6
cmp dword [esp + 0x44], ebx
je 0x4460a6
mov eax, dword [0x52b814]
mov edx, dword [eax + 0xc]
mov ecx, 0x52b814
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x40], esi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
mov dword [esp + 0x4c], ebx
push edi
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x445e60
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
lea ecx, [esp + 0x44]
call fcn.004338b0
cmp eax, ebx
je 0x445e5c
push ebx
lea ecx, [esp + 0x1c]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0x40]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004e18fa
add esp, 8
cmp eax, ebx
jl 0x445e52
cmp eax, dword [esi - 8]
jg 0x445e52
xor edx, edx
mov dword [esi - 0xc], eax
push edi
mov word [esi + eax*2], dx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x445e60
push 0x80070057
call fcn.0041a920
mov esi, dword [esp + 0x40]
cmp dword [esi - 0xc], ebx
je 0x446053
cmp dword [esp + 0x18], ebx
je 0x446053
mov eax, dword [0x52b814]
mov edx, dword [eax + 0xc]
mov ecx, 0x52b814
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x34], 1
cmp dword [esi - 4], 1
jle 0x445ea5
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x44]
call fcn.0041cc70
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push ecx
push esi
push ebx
push 0xfde9
call edi
mov esi, eax
cmp esi, ebx
jle 0x445ef7
push esi
lea ecx, [esp + 0x18]
call fcn.004338b0
cmp eax, ebx
je 0x445ee8
mov edx, dword [esp + 0x18]
push esi
push eax
push edx
lea ecx, [esp + 0x4c]
call fcn.0041bee0
push eax
push ebx
push 0xfde9
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.0041bf40
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x40]
call fcn.0041d4e0
mov eax, dword [0x52b814]
mov edx, dword [eax + 0xc]
mov ecx, 0x52b814
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov bl, 2
mov byte [esp + 0x34], bl
cmp dword [ebp - 0xc], 0
jl 0x445fea
push str._language_font_face_
push ebp
call fcn.004dfb8b
add esp, 8
test eax, eax
je 0x445fea
sub eax, ebp
sar eax, 1
cmp eax, 0xffffffff
je 0x445fea
push eax
mov eax, dword [esp + 0x48]
push eax
lea ecx, [esp + 0x1c]
call fcn.0042d8e0
cmp eax, 0xffffffff
je 0x445fea
push eax
push str.face_
lea ecx, [esp + 0x1c]
call fcn.0042d8e0
mov esi, eax
cmp esi, 0xffffffff
je 0x445fea
add esi, 6
push esi
push 0x5146a4
lea ecx, [esp + 0x1c]
call fcn.0042d8e0
cmp eax, 0xffffffff
je 0x445fea
sub eax, esi
push eax
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
call fcn.0041bc50
lea edx, [esp + 0x24]
push edx
push 0x516828
lea eax, [esp + 0x30]
mov byte [esp + 0x3c], 3
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x30], 0
call fcn.00441d70
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 4
call fcn.0042e2b0
lea ecx, [esp + 0x28]
call fcn.00426ca0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.00426ca0
mov esi, dword [esp + 0x20]
add esi, 0xfffffff0
push esi
call fcn.0041d6a0
mov edi, dword [esp + 0x40]
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [esp + 0x34], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446021
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea eax, [ebp - 0x10]
mov byte [esp + 0x34], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446042
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
jmp 0x446077
mov edx, dword [0x52b814]
mov eax, dword [edx + 0xc]
mov ecx, 0x52b814
call eax
mov edi, dword [esp + 0x3c]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x34], 0xffffffff
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446090
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [0x52b814]
mov eax, dword [edx + 0xc]
mov ecx, 0x52b814
call eax
mov ecx, eax
mov eax, dword [esp + 0x3c]
add ecx, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret