Function at 0x425410
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470838
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1f4
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x425a58
lea ecx, [ebp - 0x74]
call fcn.004372eb
push 0
push esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0
call fcn.004373b0
test eax, eax
je 0x425a49
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
cmp eax, eax
mov dword [ebp + 0xc], ecx
mov edx, eax
je 0x425495
mov edi, dword [ebp + 0xc]
mov ecx, 0x43
mov esi, edx
add edx, 0x10c
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0xc]
add edi, 0x10c
cmp edx, eax
mov dword [ebp + 0xc], edi
jne 0x425470
mov esi, dword [ebp + 8]
mov edx, dword [ebx + 8]
mov eax, dword [ebp + 0xc]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
mov dword [ebp + 8], edx
mov dword [ebx + 8], eax
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x54], edi
je 0x425a49
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4254e2
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x425a49
cmp esi, 0xffffffff
je 0x425a49
push esi
call fcn.00458a48
add esp, 4
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x58], 0
push 0
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x4aceac]
mov ecx, dword [0x4aceb0]
mov edx, dword [str.LCDTABLEBEGIN]
mov dword [ebp - 0x3c], eax
mov ax, word [0x4aceb8]
mov dword [ebp - 0x38], ecx
mov ecx, dword [str.LCDTABLEEND]
mov word [ebp - 0x30], ax
mov eax, dword [0x4acea0]
mov dword [ebp - 0x50], ecx
mov ecx, dword [0x4acea4]
mov dword [ebp - 0x48], eax
mov eax, dword [0x4ace90]
mov dword [ebp - 0x44], ecx
mov cl, byte [0x4ace94]
mov dword [ebp - 0x40], edx
mov edx, dword [0x4aceb4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], cl
lea edi, [ebp - 0x40]
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x34], edx
mov edx, dword [0x4ace9c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x4c], edx
mov edx, dword [str.LCDNAME_]
lea edi, [ebp + ecx - 0x41]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], edx
mov dword [ebp + 8], ecx
lea edx, [ecx + esi]
mov esi, edi
mov eax, edx
mov dword [ebp + 0x10], edi
sub eax, ecx
lea ecx, [ebp - 0x40]
sub esi, ecx
mov dword [ebp + 0xc], edx
cmp esi, eax
jg 0x4255f1
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x40]
sub ecx, edx
lea edi, [ebp - 0x40]
mov dword [ebp - 0x10], ecx
cmp edi, dword [ebp + 0x10]
je 0x42567c
xor edx, edx
mov dl, byte [ecx + edi]
movsx ecx, byte [edi]
cmp edx, ecx
jne 0x4255e2
mov ecx, dword [ebp - 0x10]
inc edi
jmp 0x4255c7
mov edi, dword [ebp + 8]
inc edi
dec eax
cmp esi, eax
mov dword [ebp + 8], edi
jle 0x4255b9
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0x10], edx
mov esi, edx
mov ecx, 0x42
xor eax, eax
lea edi, [ebp - 0x1fc]
mov dword [ebp - 0x200], 0
rep stosd dword es:[edi], eax
mov ecx, 0x1f
lea edi, [ebp - 0xf3]
mov byte [ebp - 0xf4], al
cmp esi, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jae 0x425a1f
lea edi, [ebp - 0x50]
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp + 8], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, edx
sub edi, esi
lea eax, [ebp + ecx - 0x51]
mov dword [ebp - 0x10], eax
mov esi, eax
lea eax, [ebp - 0x50]
sub esi, eax
cmp esi, edi
jg 0x425699
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x50]
sub ecx, edx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x14], ecx
cmp eax, dword [ebp - 0x10]
je 0x42570c
xor edx, edx
mov dl, byte [ecx + eax]
movsx ecx, byte [eax]
cmp edx, ecx
jne 0x42568a
mov ecx, dword [ebp - 0x14]
inc eax
jmp 0x425661
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0x10], esi
jmp 0x4255f6
mov edx, dword [ebp + 8]
inc edx
dec edi
cmp esi, edi
mov dword [ebp + 8], edx
jle 0x425653
mov edx, dword [ebp + 0xc]
mov dword [ebp + 8], edx
mov esi, edx
cmp esi, edx
jae 0x425a1f
lea edi, [ebp - 0x40]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0x10]
mov word [ebp + 0xd], dx
not ecx
dec ecx
mov byte [ebp + 0xc], 0
mov byte [ebp + 0xf], dl
mov cx, word [ecx + eax]
mov dword [ebp - 0x14], edx
lea edx, [ebp - 0x14]
lea eax, [ebp + 0xc]
push edx
push 0x4ace88
push eax
mov word [ebp + 0xc], cx
call fcn.00440307
mov eax, dword [ebp - 0x14]
add esp, 0xc
test eax, eax
jle 0x425a1f
lea edi, [ebp - 0x40]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ecx + edx + 2]
cmp edx, esi
jae 0x425a1f
jmp 0x42571d
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp + 8], esi
jmp 0x42569e
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x28]
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp + 0x10], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, esi
sub edi, edx
lea eax, [ebp + ecx - 0x29]
mov dword [ebp - 0x10], eax
mov esi, eax
lea eax, [ebp - 0x28]
sub esi, eax
cmp esi, edi
jg 0x425778
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x28]
sub ecx, edx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmp eax, dword [ebp - 0x10]
je 0x4257e4
xor edx, edx
mov dl, byte [eax + ecx]
movsx ecx, byte [eax]
cmp edx, ecx
jne 0x42576c
mov ecx, dword [ebp - 0x18]
inc eax
jmp 0x425751
mov edx, dword [ebp + 0x10]
inc edx
dec edi
cmp esi, edi
mov dword [ebp + 0x10], edx
jle 0x425743
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
cmp esi, eax
lea edi, [esi + edx]
mov dword [ebp - 0x10], edi
jae 0x425a11
mov ecx, dword [ebp - 0x1c]
mov eax, edi
sub eax, ecx
xor ecx, ecx
mov dword [ebp - 0x1fc], eax
mov dword [ebp - 0x1f8], edx
mov cl, byte [edi]
xor eax, eax
mov dword [ebp - 0x200], ecx
mov ecx, 0x20
lea edi, [ebp - 0xf4]
mov dword [ebp - 0x2c], 1
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [ebp - 0xf4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0xf4]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x4257e9
xor edi, edi
jmp 0x425822
mov esi, dword [ebp + 0x10]
jmp 0x42577b
lea ecx, [ebp - 0xf4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0043f620
mov edi, esp
push esi
push edi
lea edx, [ebp - 0xf4]
push 0xffffffffffffffff
push edx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x1f4]
push edi
push eax
call fcn.0043f59c
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
sub edx, ecx
mov eax, 0x7a44c6b
imul edx
sar edx, 3
mov eax, edx
add esp, 8
shr eax, 0x1f
add edx, eax
mov esi, ecx
cmp edx, 1
mov dword [ebp + 0x10], esi
jae 0x42592b
mov eax, dword [ebx + 4]
test eax, eax
je 0x42587a
sub ecx, eax
mov eax, 0x7a44c6b
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 1
mov edi, edx
ja 0x42587f
mov edi, 1
mov ecx, ebx
call fcn.00429100
add eax, edi
mov dword [ebp - 0x18], eax
jns 0x42588f
xor eax, eax
mov edx, eax
shl edx, 5
add edx, eax
lea eax, [eax + edx*2]
shl eax, 2
push eax
call fcn.00458a48
mov ecx, dword [ebx + 4]
add esp, 4
mov edi, eax
push edi
push esi
push ecx
mov ecx, ebx
call fcn.00429130
lea edx, [ebp - 0x200]
mov ecx, ebx
push edx
push 1
push eax
mov dword [ebp + 0x10], eax
call fcn.00429170
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx + 8]
add eax, 0x10c
push eax
push ecx
push esi
mov ecx, ebx
call fcn.00429130
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
push edx
push eax
mov ecx, ebx
call fcn.00428ee0
mov eax, dword [ebx + 4]
push eax
call fcn.00458a71
mov eax, dword [ebp - 0x18]
add esp, 4
mov ecx, eax
shl ecx, 5
add ecx, eax
lea edx, [eax + ecx*2]
mov ecx, ebx
lea eax, [edi + edx*4]
mov dword [ebx + 0xc], eax
call fcn.00429100
inc eax
mov dword [ebx + 4], edi
mov ecx, eax
shl ecx, 5
add ecx, eax
lea edx, [eax + ecx*2]
lea eax, [edi + edx*4]
mov dword [ebx + 8], eax
jmp 0x425a11
mov edx, ecx
mov eax, 0x7a44c6b
sub edx, esi
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x4259a7
lea edx, [esi + 0x10c]
push edx
push ecx
push esi
mov ecx, ebx
call fcn.00429130
mov edi, dword [ebx + 8]
lea eax, [ebp - 0x200]
mov ecx, edi
push eax
sub ecx, esi
mov eax, 0x7a44c6b
imul ecx
sar edx, 3
mov ecx, edx
mov eax, 1
shr ecx, 0x1f
add edx, ecx
mov ecx, ebx
sub eax, edx
push eax
push edi
call fcn.00429170
mov edx, dword [ebx + 8]
mov eax, esi
cmp esi, edx
je 0x425a0a
mov edi, eax
add eax, 0x10c
mov ecx, 0x43
lea esi, [ebp - 0x200]
cmp eax, edx
rep movsd dword es:[edi], dword [esi]
jne 0x42598d
jmp 0x425a0a
lea eax, [ecx - 0x10c]
push ecx
push ecx
push eax
mov ecx, ebx
mov dword [ebp - 0x18], eax
call fcn.00429130
mov edx, dword [ebx + 8]
lea eax, [edx - 0x10c]
cmp esi, eax
je 0x4259e6
sub eax, 0x10c
sub edx, 0x10c
mov ecx, 0x43
mov esi, eax
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jne 0x4259c7
mov esi, ecx
lea edx, [esi + 0x10c]
mov eax, esi
cmp esi, edx
je 0x425a0a
mov edi, eax
add eax, 0x10c
mov ecx, 0x43
lea esi, [ebp - 0x200]
cmp eax, edx
rep movsd dword es:[edi], dword [esi]
jne 0x4259f2
add dword [ebx + 8], 0x10c
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
cmp eax, ecx
jb 0x425717
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00458a71
add esp, 4
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
call fcn.0043732a
mov eax, dword [ebp - 0x2c]
jmp 0x425a5a
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
call fcn.0043732a
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x20c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc