Function at 0x456060
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4d4d
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4da064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x94]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
shr eax, 0xa
mov dword [ebp - 0x50], ecx
test al, 1
je 0x4560e7
cmp dword [ebx + 0x158], 0xe0000024
jne 0x4560e7
cmp byte [esi + 4], 0
je 0x4560e7
cmp dword [esi + 0x18], 0
je 0x4560e7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 0x18]
push 1
push 0xe0000024
push 0
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, dword [ebp - 0x50]
cmp eax, 0x4d5
jne 0x4560e7
mov dword [ebx + 0x158], 0
mov edi, dword [ebx + 0x158]
test edi, edi
jne 0x4565fc
mov eax, dword [ecx]
lea edi, [ebx + 0x160]
push dword [ebx + 0x80]
call dword [eax + 0x2c]
mov ecx, dword [ebp - 0x50]
lea edx, [ebx + 0xa0]
push edi
push edx
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov edi, eax
mov byte [ebp - 0x41], 0
mov dword [ebp - 0x48], edi
mov dword [ebx + 0x158], edi
test edi, edi
jne 0x4564e4
mov edi, dword [ebx + 0x168]
call fcn.004039e0
test eax, eax
je 0x45661c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 1
lea edx, [ebp - 0x4c]
mov eax, dword [edi + 0xe0]
lea ecx, [ebx + 4]
push edx
push ecx
push 1
mov eax, dword [eax + 0x28]
lea ecx, [edi + 0xe0]
call eax
test al, al
je 0x456193
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x45661c
push eax
push dword [ebx + 0x160]
call fcn.0047e2a0
add esp, 8
test eax, eax
jne 0x456193
jmp 0x4561af
mov eax, dword [edi + 0xe0]
lea ecx, [ebx + 0x160]
push ecx
lea ecx, [ebx + 4]
push ecx
push 1
lea ecx, [edi + 0xe0]
call dword [eax + 0x24]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4561d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0x98]
cmp dword [eax - 0xc], 0
je 0x4563c7
cmp byte [esi + 4], 0
je 0x456224
cmp byte [esi + 5], 0
je 0x456224
cmp dword [esi + 0x18], 0
je 0x456224
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 0x18]
push 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov eax, dword [ecx]
push 0
push 0x69
call dword [eax + 0xc]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 4
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x58], 0
mov dword [ebp - 4], 5
xor eax, eax
mov edx, dword [ebx + 0x160]
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea edi, [ecx + 2]
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x456280
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004034e0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x68]
call fcn.004024b0
mov edi, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.00403630
test edi, edi
je 0x4562cc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00402c20
jmp 0x45631c
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x68]
call fcn.004026d0
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
jb 0x4562e4
mov eax, dword [eax]
test eax, eax
je 0x45661c
push eax
push dword [ebx + 0x98]
call fcn.0047e2a0
add esp, 8
mov edi, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
call fcn.00403630
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00402c20
test edi, edi
je 0x456397
mov edi, 0xe0000030
mov ecx, ebx
mov dword [ebp - 0x48], edi
mov dword [ebx + 0x158], edi
call fcn.004597e0
mov ecx, dword [ebx + 0x168]
lea edx, [ebx + 4]
add ecx, 0xe0
push edx
push 1
mov eax, dword [ecx]
call dword [eax + 0x40]
cmp byte [esi + 4], 0
je 0x45638a
cmp dword [esi + 0x18], 0
je 0x45638a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 0x18]
push 0
push edi
push 0
mov eax, dword [ecx]
call dword [eax + 0x24]
cmp eax, 0x4d5
je 0x456391
cmp eax, 0xe0000008
jne 0x45638c
mov dword [ebx + 0x158], 0xe0000008
mov eax, 0xe0000008
jmp 0x4565fe
xor eax, eax
cmp eax, 0x4d5
sete byte [ebp - 0x41]
jmp 0x45639a
mov edi, dword [ebp - 0x48]
cmp byte [esi + 4], 0
je 0x4564d2
cmp byte [esi + 5], 0
je 0x4564d2
cmp dword [esi + 0x18], 0
je 0x4564d2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push edi
push 0x69
jmp 0x4564ca
mov eax, dword [ebx + 0x9c]
cmp dword [eax - 0xc], 0
je 0x456504
cmp byte [esi + 4], 0
mov edx, eax
je 0x456422
cmp byte [esi + 5], 0
je 0x456422
cmp dword [esi + 0x18], 0
je 0x456422
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 0x18]
push 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov eax, dword [ecx]
push 0
push 0x66
call dword [eax + 0xc]
mov edx, dword [ebx + 0x9c]
push ecx
mov ecx, dword [ebx + 0x160]
call fcn.0040c870
add esp, 4
test al, al
jne 0x4564ab
mov edi, 0xe0000022
mov ecx, ebx
mov dword [ebp - 0x48], edi
mov dword [ebx + 0x158], edi
call fcn.004597e0
mov ecx, dword [ebx + 0x168]
lea edx, [ebx + 4]
add ecx, 0xe0
push edx
push 1
mov eax, dword [ecx]
call dword [eax + 0x40]
cmp byte [esi + 4], 0
je 0x45649e
cmp dword [esi + 0x18], 0
je 0x45649e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 0x18]
push 0
push edi
push 0
mov eax, dword [ecx]
call dword [eax + 0x24]
cmp eax, 0x4d5
je 0x4564a5
cmp eax, 0xe0000008
je 0x456376
cmp eax, 0x4d5
sete byte [ebp - 0x41]
jmp 0x4564ae
xor eax, eax
cmp eax, 0x4d5
sete byte [ebp - 0x41]
jmp 0x4564ae
mov edi, dword [ebp - 0x48]
cmp byte [esi + 4], 0
je 0x4564d2
cmp byte [esi + 5], 0
je 0x4564d2
cmp dword [esi + 0x18], 0
je 0x4564d2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push edi
push 0x66
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
call dword [eax + 0x14]
cmp byte [ebp - 0x41], 0
je 0x4565f9
mov ecx, dword [ebp - 0x50]
jmp 0x4560f5
cmp edi, 0xe0000008
je 0x456380
cmp edi, 0xe000000f
jne 0x4565d1
mov ecx, dword [ebp - 0x50]
jmp 0x4560f5
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebx + 0x160]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x54], 0x4b9bec
mov dword [ebp - 0x50], edi
mov dword [ebp - 4], 0xa
cmp edi, 0xffffffff
jne 0x45654f
mov dword [ebp - 4], eax
push eax
mov dword [ebp - 0x54], 0x4b9bec
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x456577
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x54], 0x4b9bec
test edi, edi
je 0x45657e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], 0
cmp eax, dword [ebx + 0x80]
je 0x4565f9
mov edi, 0xe0000023
mov ecx, ebx
mov dword [ebx + 0x158], edi
call fcn.004597e0
mov ecx, dword [ebx + 0x168]
lea edx, [ebx + 4]
add ecx, 0xe0
push edx
push 1
mov eax, dword [ecx]
call dword [eax + 0x40]
cmp byte [esi + 4], 0
je 0x4565fc
cmp dword [esi + 0x18], 0
je 0x4565fc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 0x18]
push 0
push edi
push 0
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x4565fc
cmp edi, 0xe0000023
jne 0x4565fc
mov ecx, ebx
call fcn.004597e0
mov ecx, dword [ebx + 0x168]
lea eax, [ebx + 4]
add ecx, 0xe0
push eax
push 1
mov edx, dword [ecx]
call dword [edx + 0x40]
jmp 0x4565fc
mov edi, dword [ebp - 0x48]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047615e
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00402150
int3