Function at 0x46f960
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x50e1b1
mov eax, dword fs:[0]
push eax
sub esp, 0x7b0
mov eax, dword [0x5405a0]
xor eax, esp
mov dword [esp + 0x7a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5405a0]
xor eax, esp
push eax
lea eax, [esp + 0x7c4]
mov dword fs:[0], eax
mov esi, dword [esp + 0x7e4]
mov ebp, dword [esp + 0x7e0]
mov eax, dword [esp + 0x7d8]
mov edi, dword [esp + 0x7d4]
push esi
push ebp
mov ebx, edx
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x7e8]
mov dword [esp + 0x30], ecx
push edi
mov ecx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], esi
call fcn.00471ab0
test al, al
jne 0x46fa05
mov ecx, edi
call fcn.00439450
push 0x52d408
push 0x52139c
mov edx, eax
call fcn.0043a8a0
add esp, 8
xor al, al
jmp 0x46fe2f
push 0x206
xor edi, edi
lea edx, [esp + 0x5ba]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x5c0], cx
call fcn.004d3fc0
add esp, 0xc
cmp dword [esi], edi
mov dword [esp + 0x1c], edi
jle 0x46fe2d
mov dword [esp + 0x18], edi
mov eax, dword [ebp]
lea esi, [eax + edi]
movzx eax, word [esi]
test ax, ax
jne 0x46fa6f
cmp byte [ebx + 0x88c], al
lea eax, [ebx + 0x77c]
jne 0x46fa59
mov eax, dword [ebx + 0x778]
mov ecx, dword [esi + 6]
mov edx, dword [esi + 2]
push ecx
push edx
add eax, 4
push eax
push str._s_d_d.png
jmp 0x46fb22
cmp ax, 1
jne 0x46fb37
xor ecx, ecx
push 0x7e
push ecx
lea edx, [esp + 0x53e]
push edx
mov word [esp + 0x540], cx
call fcn.004d3fc0
add esp, 0xc
xor eax, eax
push 0x7e
push eax
lea ecx, [esp + 0x4be]
push ecx
mov word [esp + 0x4c0], ax
call fcn.004d3fc0
mov eax, dword [esi + 2]
movsx edx, word [eax]
add esp, 0xc
push edx
add eax, 2
push eax
lea eax, [esp + 0x53c]
push 0x80
push eax
call fcn.004d0a60
mov ecx, dword [ebp]
mov eax, dword [ecx + edi + 6]
movsx edx, word [eax]
push edx
add eax, 2
push eax
lea eax, [esp + 0x4cc]
push 0x80
push eax
call fcn.004d0a60
add esp, 0x20
cmp byte [ebx + 0x88c], 0
lea eax, [ebx + 0x77c]
jne 0x46fb09
mov eax, dword [ebx + 0x778]
lea ecx, [esp + 0x4b4]
push ecx
lea edx, [esp + 0x538]
push edx
add eax, 4
push eax
push str._s_s_s.png
lea eax, [esp + 0x5c4]
push 0x104
push eax
call fcn.004cf71e
add esp, 0x18
mov ecx, dword [ebp]
lea eax, [ecx + edi]
movzx ecx, word [eax]
xor edx, edx
cmp cx, dx
je 0x46fb5c
cmp cx, 1
je 0x46fb5c
mov dword [eax + 0x1c], edx
mov eax, dword [ebp]
mov dword [eax + edi + 0x20], edx
jmp 0x46fe11
mov esi, dword [esp + 0x20]
mov edi, dword [esi + 4]
cmp edi, edx
je 0x46fb73
call fcn.00440760
mov dword [esi + 4], 0
or eax, 0xffffffff
lea ecx, [esp + 0x168]
mov dword [esp + method.t_file.virtual_0], vtable.t_file.0
mov dword [esp + 0x160], eax
mov dword [esp + 0x164], eax
call fcn.0043a090
xor edi, edi
cmp dword [esp + 0x288], edi
je 0x46fbad
mov dword [esp + 0x288], edi
mov ecx, 1
lea esi, [esp + 0x170]
mov dword [esp + 0x16c], edi
call fcn.0043ae00
cmp byte [esp + 0x284], 0
lea eax, [esp + 0x174]
jne 0x46fbdd
mov eax, dword [esp + 0x170]
xor ecx, ecx
mov word [eax + 4], cx
xor edx, edx
mov dword [esp + 0x290], edi
mov dword [esp + 0x49c], 8
mov word [esp + 0x294], dx
mov dword [esp + method.t_path::t_mutex.virtual_0], vtable.t_path::t_mutex.0
mov dword [esp + 0x4a0], 0x529be0
mov dword [esp + 0x4a4], edi
mov dword [esp + method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [esp + 0x4a8], 0x52afc8
mov dword [esp + 0x4ac], edi
mov dword [esp + 0x4b0], edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x7cc], edi
call fcn.0043a090
lea ebx, [esp + 0x5b4]
mov eax, ebx
test eax, eax
jne 0x46fc62
mov ebx, 0x5213e4
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46fc67
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
mov ecx, edi
lea esi, [esp + 0x40]
mov dword [esp + 0x3c], eax
call fcn.0043ae00
cmp byte [esp + 0x154], 0
lea eax, [esp + 0x44]
jne 0x46fc9a
mov eax, dword [esp + 0x40]
lea ecx, [edi + edi]
push ecx
add eax, 4
push ebx
push eax
call fcn.004d4040
add esp, 0xc
mov ebx, dword [esp + 0x30]
xor edi, edi
push edi
push ebx
lea edx, [esp + 0x164]
push edx
lea eax, [esp + 0x44]
mov byte [esp + 0x7d8], 2
call fcn.0043fdc0
test al, al
jne 0x46fcdb
mov eax, dword [esp + 0x4ac]
xor cl, cl
jmp 0x46fd12
mov ecx, dword [esp + 0x160]
lea eax, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46fd07
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x46fd07
xor eax, eax
jmp 0x46fd09
mov eax, esi
mov dword [esp + 0x4ac], eax
mov cl, 1
test cl, cl
mov byte [esp + 0x7cc], 0
sete byte [esp + 0x17]
cmp byte [esp + 0x154], 0
mov dword [esp + 0x38], vtable.t_str.0
jne 0x46fd4f
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x44]
cmp ecx, edx
je 0x46fd4f
push ecx
call fcn.004ccef0
mov eax, dword [esp + 0x4b0]
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x46fe59
sub eax, dword [esp + 0x4b0]
mov ecx, dword [ebp]
mov esi, dword [esp + 0x18]
mov dword [ecx + esi + 0x20], eax
mov edx, dword [ebp]
mov eax, dword [edx + esi + 0x20]
mov ecx, dword [esp + 0x24]
push eax
call fcn.004036b0
mov ecx, dword [ebp]
mov dword [ecx + esi + 0x1c], eax
mov edx, dword [ebp]
mov ecx, dword [edx + esi + 0x20]
lea eax, [edx + esi]
mov edx, dword [eax + 0x1c]
push ecx
push edx
push ebx
lea ecx, [esp + 0x4b4]
call fcn.00447bd0
test al, al
jne 0x46fdb9
mov eax, dword [ebp]
mov dword [eax + esi + 0x1c], edi
mov ecx, dword [ebp]
mov dword [ecx + esi + 0x20], edi
mov ecx, ebx
call fcn.004394a0
lea edx, [esp + 0x15c]
push edx
call fcn.0043ffe0
push ebx
mov edi, 0x542d68
call fcn.00440620
test al, al
je 0x46fddc
mov eax, dword [esp + 0x20]
mov dword [eax + 4], edi
mov dword [esp + 0x7cc], 0xffffffff
lea ecx, [esp + 0x15c]
mov dword [esp + method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [esp + 0x4a8], 0x52afd4
call fcn.0043fcf0
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
inc eax
add edi, 0x24
cmp eax, dword [ecx]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
jl 0x46fa37
mov al, 1
mov ecx, dword [esp + 0x7c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7a8]
xor ecx, esp
call fcn.004ccee1
add esp, 0x7bc
ret 0x14
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp]
lea eax, [eax + eax*8]
add eax, eax
add eax, eax
mov dword [eax + edx + 0x1c], edi
mov ecx, dword [ebp]
mov dword [eax + ecx + 0x20], edi
mov ecx, ebx
call fcn.004394a0
lea edx, [esp + 0x15c]
push edx
call fcn.0043ffe0
push ebx
mov edi, 0x542d68
call fcn.00440620
test al, al
je 0x46fe9c
mov eax, dword [esp + 0x20]
mov dword [eax + 4], edi
mov ecx, ebx
call fcn.00439450
push 0x52d59c
push 0x52139c
mov edx, eax
call fcn.0043a8a0
mov dword [esp + 0x7d4], 0xffffffff
add esp, 8
lea ecx, [esp + 0x15c]
mov dword [esp + method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [esp + 0x4a8], 0x52afd4
call fcn.0043fcf0
xor al, al
jmp 0x46fe2f