Function at 0x40e14c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x639264
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push esi
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x44]
add ecx, 0xb4
call fcn.00418700
test eax, eax
je 0x40e184
xor eax, eax
jmp 0x40e48e
push 0
mov ecx, dword [ebp - 0x44]
call fcn.0040d94e
mov eax, dword [ebp - 0x44]
add eax, 0x1a0
push eax
lea ecx, [ebp - 0x28]
call fcn.00618af3
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x44]
add ecx, 0xab8
call fcn.00411410
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x74
call fcn.00403680
test eax, eax
jne 0x40e200
push 0x6d86e8
mov ecx, dword [ebp - 0x44]
add ecx, 0x74
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.00619013
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00619196
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00618d7e
lea ecx, [ebp - 0x28]
call fcn.00403680
test eax, eax
je 0x40e27a
push 0x76bb70
mov ecx, dword [ebp - 0x44]
add ecx, 0x9bc
call fcn.00618f07
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x44]
add ecx, 0xb4
call fcn.00411980
lea ecx, [ebp - 0x30]
call fcn.00618d7e
push 1
mov ecx, dword [ebp - 0x44]
call fcn.0040d94e
push 0x30
push 0x6d86ec
push 0x6d86f4
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00618d7e
mov eax, dword [ebp - 0x34]
jmp 0x40e48e
mov ecx, dword [ebp - 0x44]
add ecx, 0xb4
call fcn.00411960
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x80
call fcn.00618eb7
mov edx, dword [ebp - 0x44]
add edx, 0x80
push edx
lea ecx, [ebp - 0x14]
call fcn.00618af3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00403580
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x9bc
call fcn.00403580
push eax
lea ecx, [ebp - 0x14]
call fcn.0061079f
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x6c
call fcn.00618eb7
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x84
call fcn.00618eb7
mov ecx, dword [ebp - 0x44]
cmp dword [ecx + 0x78], 0xffffffff
je 0x40e301
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push 0
mov ecx, dword [ebp - 0x44]
add ecx, 0x80
call fcn.006191ae
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x78], eax
mov edx, dword [ebp - 0x44]
cmp dword [edx + 0x78], 0xffffffff
jne 0x40e363
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00618d7e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00618d7e
mov eax, dword [ebp - 0x38]
jmp 0x40e48e
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
xor edx, edx
mov ecx, 0x20
call fcn.004ad750
mov ecx, dword [ebp - 0x24]
xor esi, esi
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x88], eax
mov dword [ecx + 0x8c], edx
lea ecx, [ebp - 0x14]
call fcn.00403540
add eax, 0xa
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004ac1d0
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov byte [edx], 0xa
push 4
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 1
push ecx
call fcn.004ac230
add esp, 0xc
push 4
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x1c]
add eax, 5
push eax
call fcn.004ac230
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.00403540
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.006191ae
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 9
push ecx
call fcn.004ac230
add esp, 0xc
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x9a8]
push edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x9ac]
call fcn.00416bf7
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea edx, [ebp - 0x3c]
push edx
mov ecx, dword [ebp - 0x44]
add ecx, 0xb4
call fcn.00411980
lea ecx, [ebp - 0x3c]
call fcn.00618d7e
mov dword [ebp - 0x40], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00618d7e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00618d7e
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret