Function at 0x406284
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
mov eax, 0x4d8518
call fcn.004c9c18
mov dword [ebp - 0x44], 1
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.004d4474
inc dword [ebp - 0x44]
mov word [ebp - 0x50], 8
xor edx, edx
mov dword [ebp - 0x64], edx
xor ecx, ecx
mov dword [ebp - 0x68], ecx
push 0
push 0x20
push 3
push 0
push 1
push 0x80000000
cmp dword [ebp + 0xc], 0
je 0x4062d3
mov eax, dword [ebp + 0xc]
jmp 0x4062d8
mov eax, 0x4d6b71
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x68], eax
push 0
push dword [ebp - 0x68]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x64], eax
push dword [ebp - 0x68]
call sub.kernel32.dll_CloseHandle
xor edx, edx
mov dword [ebp - 0x6c], edx
fild dword [ebp - 0x64]
fstp dword [ebp - 0x6c]
cmp dword [ebp - 0x64], 0xffffffff
jne 0x40636b
mov word [ebp - 0x50], 0x14
mov edx, 0x4d6b72
lea eax, [ebp - 0x14]
call fcn.004d443c
inc dword [ebp - 0x44]
lea edx, [ebp - 0x14]
mov eax, dword [ebp + 8]
call fcn.004d45cc
mov eax, dword [ebp + 8]
mov word [ebp - 0x50], 0x20
push eax
dec dword [ebp - 0x44]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004d459c
dec dword [ebp - 0x44]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004d459c
pop eax
mov word [ebp - 0x50], 0x14
inc dword [ebp - 0x44]
mov edx, dword [ebp - 0x60]
mov dword fs:[0], edx
jmp 0x40672b
mov word [ebp - 0x50], 0x2c
mov edx, 0x4d6b78
lea eax, [ebp - 4]
call fcn.004d443c
inc dword [ebp - 0x44]
mov word [ebp - 0x50], 8
mov word [ebp - 0x50], 0x38
mov edx, 0x4d6b79
lea eax, [ebp - 8]
call fcn.004d443c
inc dword [ebp - 0x44]
mov word [ebp - 0x50], 8
mov word [ebp - 0x50], 0x44
mov edx, 0x4d6b7a
lea eax, [ebp - 0xc]
call fcn.004d443c
inc dword [ebp - 0x44]
mov word [ebp - 0x50], 8
fld dword [ebp - 0x6c]
fcomp dword [0x406730]
fnstsw ax
sahf
ja 0x4063fe
mov word [ebp - 0x50], 0x50
mov edx, 0x4d6b7b
lea eax, [ebp - 0x18]
call fcn.004d443c
inc dword [ebp - 0x44]
lea edx, [ebp - 0x18]
lea eax, [ebp - 8]
call fcn.004d45cc
dec dword [ebp - 0x44]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004d459c
fld dword [ebp - 0x6c]
fcomp dword [0x406730]
fnstsw ax
sahf
jbe 0x406449
fld dword [ebp - 0x6c]
fmul dword [0x406734]
fstp dword [ebp - 0x6c]
mov word [ebp - 0x50], 0x5c
mov edx, 0x4d6b82
lea eax, [ebp - 0x1c]
call fcn.004d443c
inc dword [ebp - 0x44]
lea edx, [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.004d45cc
dec dword [ebp - 0x44]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004d459c
fld dword [ebp - 0x6c]
fcomp dword [0x406730]
fnstsw ax
sahf
jbe 0x406494
fld dword [ebp - 0x6c]
fmul dword [0x406734]
fstp dword [ebp - 0x6c]
mov word [ebp - 0x50], 0x68
mov edx, 0x4d6b86
lea eax, [ebp - 0x20]
call fcn.004d443c
inc dword [ebp - 0x44]
lea edx, [ebp - 0x20]
lea eax, [ebp - 8]
call fcn.004d45cc
dec dword [ebp - 0x44]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004d459c
mov word [ebp - 0x50], 0x74
fld dword [ebp - 0x6c]
add esp, 0xfffffff4
fstp xword [esp]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x24]
inc dword [ebp - 0x44]
call fcn.0043fa34
lea edx, [ebp - 0x24]
lea eax, [ebp - 4]
call fcn.004d45cc
dec dword [ebp - 0x44]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004d459c
mov word [ebp - 0x50], 0x80
mov edx, 0x4d6b8a
lea eax, [ebp - 0x10]
call fcn.004d443c
inc dword [ebp - 0x44]
mov word [ebp - 0x50], 8
mov word [ebp - 0x50], 0x8c
xor ecx, ecx
mov dword [ebp - 0x28], ecx
lea eax, [ebp - 0x28]
push eax
inc dword [ebp - 0x44]
call fcn.0040f824
pop ecx
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x10]
call fcn.004d45cc
dec dword [ebp - 0x44]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004d459c
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.004d473c
mov dword [ebp - 0x70], eax
mov word [ebp - 0x50], 8
cmp dword [ebp - 0x70], 0
je 0x406686
mov word [ebp - 0x50], 0x98
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
lea eax, [ebp - 0x2c]
push eax
inc dword [ebp - 0x44]
lea eax, [ebp - 4]
mov ecx, 3
mov edx, dword [ebp - 0x70]
call fcn.004d4760
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0xc]
call fcn.004d45cc
dec dword [ebp - 0x44]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004d459c
mov word [ebp - 0x50], 0xa4
xor ecx, ecx
mov dword [ebp - 0x30], ecx
lea eax, [ebp - 0x30]
push eax
inc dword [ebp - 0x44]
mov ecx, dword [ebp - 0x70]
dec ecx
lea eax, [ebp - 4]
mov edx, 1
call fcn.004d4760
lea eax, [ebp - 0x30]
xor edx, edx
mov dword [ebp - 0x34], edx
lea ecx, [ebp - 0x34]
inc dword [ebp - 0x44]
lea edx, [ebp - 0xc]
call fcn.004d45f4
lea eax, [ebp - 0x34]
xor ecx, ecx
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x38]
inc dword [ebp - 0x44]
lea edx, [ebp - 8]
call fcn.004d45f4
lea edx, [ebp - 0x38]
lea eax, [ebp - 4]
call fcn.004d45cc
dec dword [ebp - 0x44]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.004d459c
dec dword [ebp - 0x44]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.004d459c
dec dword [ebp - 0x44]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004d459c
mov word [ebp - 0x50], 0xb0
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.004d45cc
mov eax, dword [ebp + 8]
mov word [ebp - 0x50], 0xbc
push eax
dec dword [ebp - 0x44]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004d459c
dec dword [ebp - 0x44]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004d459c
dec dword [ebp - 0x44]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004d459c
dec dword [ebp - 0x44]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004d459c
dec dword [ebp - 0x44]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004d459c
pop eax
mov word [ebp - 0x50], 0xb0
inc dword [ebp - 0x44]
mov edx, dword [ebp - 0x60]
mov dword fs:[0], edx
jmp 0x40672b
mov word [ebp - 0x50], 0xc8
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x3c]
inc dword [ebp - 0x44]
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.004d45f4
lea edx, [ebp - 0x3c]
mov eax, dword [ebp + 8]
call fcn.004d45cc
mov eax, dword [ebp + 8]
mov word [ebp - 0x50], 0xd4
push eax
dec dword [ebp - 0x44]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004d459c
dec dword [ebp - 0x44]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004d459c
dec dword [ebp - 0x44]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004d459c
dec dword [ebp - 0x44]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004d459c
dec dword [ebp - 0x44]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004d459c
dec dword [ebp - 0x44]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004d459c
pop eax
mov word [ebp - 0x50], 0xc8
inc dword [ebp - 0x44]
mov edx, dword [ebp - 0x60]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret