Function at 0x426740
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aeec7
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x620024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, edx
mov dword [ebp - 0x24], eax
mov edi, ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0
xor cl, cl
mov edx, dword [eax + 8]
xor ebx, ebx
mov dword [ebp - 0x30], 0
or esi, 0xffffffff
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x34], ebx
cmp ebx, edx
jge 0x426d7d
test ebx, ebx
js 0x426da7
cmp ebx, dword [eax + 8]
jge 0x426da7
mov ecx, dword [eax + 4]
lea edx, [ebx + ebx*2]
push 0
shl edx, 3
xor eax, eax
push 0x20000080
add ecx, edx
mov dword [ebp - 0x1c], edx
cmp byte [edi + 0x206], al
mov edx, 3
push 3
push 0
cmovne eax, edx
push eax
push 0xc0000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [edi + 0x84], eax
setne cl
mov byte [ebp - 0x11], cl
je 0x426a3a
lea eax, [edi + 0xc]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x24]
cmp ebx, dword [eax + 8]
jge 0x426da7
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x50]
sub ecx, 0x10
mov dword [ebp - 0x3c], ecx
mov edx, dword [eax]
lea eax, [edx - 0x10]
mov dword [ebp - 0x18], eax
cmp eax, ecx
je 0x426881
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x38], eax
jl 0x426875
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x426875
push dword [ebp - 0x18]
call fcn.00405670
mov ecx, dword [ebp - 0x38]
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x42686a
mov edx, dword [ebp - 0x3c]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [edi + 0x50], eax
jmp 0x426881
push dword [edx - 0xc]
lea ecx, [edi + 0x50]
push edx
call fcn.00402d30
mov eax, dword [edi + 4]
lea ecx, [edi + 4]
call dword [eax + 0x14]
mov eax, dword [ebp - 0x24]
cmp ebx, dword [eax + 8]
jge 0x426da7
mov ecx, dword [ebp - 0x1c]
lea edx, [edi + 0x88]
mov eax, dword [eax + 4]
add ecx, eax
cmp byte [ecx + 0x10], 0
je 0x4268e1
lea eax, [edi + 0x8c]
push eax
push dword [edi + 0x84]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 0x88], eax
lea edx, [edi + 0x88]
cmp eax, 0xffffffff
jne 0x4268f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4268ee
mov byte [ebp - 0x11], 0
jmp 0x426a24
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx], eax
mov dword [edx + 4], ecx
jmp 0x4268f4
lea edx, [edi + 0x88]
cmp byte [ebp - 0x11], 0
je 0x426a24
cmp dword [edx + 4], 0
ja 0x426919
cmp dword [edx], 0
ja 0x426919
mov ecx, dword [edi + 0x84]
call fcn.004266b0
jmp 0x426a24
test edx, edx
je 0x42692b
push 1
push 8
push edx
call fcn.0044c4b5
test eax, eax
je 0x42693f
lea esi, [edi + 0x88]
mov edx, 8
mov ecx, esi
call fcn.004343b0
jmp 0x426945
lea esi, [edi + 0x88]
mov edx, dword [edi + 0xac]
mov eax, 0x200
mov ecx, dword [edi + 0xa8]
cmp edx, eax
mov dword [ebp - 0x1c], ecx
cmova eax, edx
cmp ecx, eax
ja 0x42696f
mov eax, 0x200
cmp edx, eax
cmova eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi]
xor eax, eax
mov esi, dword [esi + 4]
mov edx, ecx
add edx, dword [ebp - 0x1c]
mov dword [edi + 0x1d0], 0
adc esi, eax
mov dword [edi + 0x1d4], 0
add edx, 0xffffffff
adc esi, 0xffffffff
add dword [ebp - 0x1c], 0xffffffff
not dword [ebp - 0x1c]
adc eax, 0xffffffff
and edx, dword [ebp - 0x1c]
not eax
mov dword [edi + 0x88], edx
and esi, eax
mov dword [edi + 0x1c8], edx
mov eax, edx
mov dword [edi + 0x8c], esi
sub eax, ecx
mov dword [edi + 0x1cc], esi
mov dword [edi + 0x98], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x1f4], eax
mov eax, dword [edi + 0xb4]
push edi
mov eax, dword [eax + 0xa5]
call eax
add esp, 4
mov byte [ebp - 0x11], al
test al, al
je 0x426a21
push 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push 0
push dword [edi + 0x84]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [edi + 0x84]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [edi + 0x84]
call fcn.004266b0
or esi, 0xffffffff
push dword [edi + 0x84]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov cl, byte [ebp - 0x11]
mov dword [ebp - 4], 0xffffffff
test cl, cl
jne 0x426d91
call fcn.00449b3d
mov ecx, eax
test ecx, ecx
je 0x426d9d
jmp 0x426af9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 6
call fcn.00426420
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x426c6d
mov byte [ebp - 4], 7
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x426b36
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x426b4c
call fcn.00449b3d
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x426dac
mov eax, dword [ecx]
call dword [eax + 0xc]
or dword [ebp - 0x20], 1
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
push dword [eax - 0xc]
push eax
push 2
lea eax, [ebp - 0x1c]
push 0x5f61a0
push eax
call fcn.00416370
add esp, 0x14
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x1c]
mov ecx, dword [esi - 0x10]
lea eax, [esi - 0x10]
mov dword [ebp - 0x48], eax
test ecx, ecx
je 0x426b94
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x426baa
call fcn.00449b3d
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x426db6
mov eax, dword [ecx]
call dword [eax + 0xc]
or dword [ebp - 0x20], 2
add eax, 0x10
push 1
push 0x5f619c
push dword [esi - 0xc]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.00416370
mov eax, dword [ebp - 0x34]
add esp, 0x14
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov dword [ebp - 0x38], edx
lea esi, [eax - 0x10]
cmp esi, edx
je 0x426c32
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
mov dword [ebp - 0x3c], ecx
jl 0x426c26
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x426c26
push esi
call fcn.00405670
mov ecx, dword [ebp - 0x3c]
add esp, 4
mov dword [ebp - 0x44], eax
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x426c1b
mov edx, dword [ebp - 0x38]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x44]
add eax, 0x10
mov dword [ebp - 0x18], eax
jmp 0x426c32
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
push eax
call fcn.00402d30
and dword [ebp - 0x20], 0xfffffffd
or eax, 0xffffffff
mov byte [ebp - 4], 7
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x426c4f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x48]
or esi, 0xffffffff
mov byte [ebp - 4], 6
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x426c6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
cmp ebx, dword [eax + 8]
jge 0x426da7
mov eax, dword [eax + 4]
lea ecx, [ebx + ebx*2]
shl ecx, 3
add eax, ecx
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00415f10
add esp, 0xc
mov byte [ebp - 4], 9
mov edx, dword [eax]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov dword [ebp - 0x3c], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x48], eax
lea eax, [edx - 0x10]
cmp eax, ecx
je 0x426d06
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x44], eax
jl 0x426cfa
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x426cfa
mov eax, dword [ebp - 0x48]
push eax
call fcn.00405670
mov ecx, dword [ebp - 0x44]
add esp, 4
mov dword [ebp - 0x48], eax
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x426cef
mov edx, dword [ebp - 0x3c]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x48]
add eax, 0x10
mov dword [ebp - 0x18], eax
jmp 0x426d06
push dword [edx - 0xc]
lea ecx, [ebp - 0x18]
push edx
call fcn.00402d30
mov byte [ebp - 4], 6
mov eax, esi
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x426d24
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x18]
lea ecx, [edi + 0x18c]
push eax
push dword [ecx + 8]
call fcn.0044c8e6
cmp dword [ebp - 0x2c], 1
jle 0x426d5b
mov eax, dword [ebp - 0x24]
cmp ebx, dword [eax + 8]
jge 0x426da7
mov eax, dword [eax + 4]
mov edx, 0xcd
add eax, dword [ebp - 0x34]
mov ecx, edi
push dword [eax]
call fcn.004237f0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x426d7a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov cl, byte [ebp - 0x11]
mov al, cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24]
inc ebx
mov edx, dword [ebp - 0x2c]
jmp 0x426790
push 0x80004005
call fcn.00403300
call fcn.004498c5
push 0x80004005
call fcn.00403300
push 0x80004005
call fcn.00403300
int3