Function at 0x40ac30
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ea7d8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
mov ebp, ecx
push esi
mov eax, dword [ebp + 0xc0]
test eax, eax
jne 0x40ac69
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push 0
mov ecx, ebp
call fcn.0040a540
lea eax, [ebp + 0x1a0]
lea ecx, [esp + 0xc]
push eax
call fcn.004d34d5
mov ecx, dword [ebp + 0xad4]
push 0
push 0
push 0x1042
push ecx
mov dword [esp + 0x34], 0
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp + 0x74]
lea eax, [ebp + 0x74]
mov ecx, dword [edx - 8]
test ecx, ecx
je 0x40acda
push 0x548600
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004d39f5
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.004d3b78
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.004d3760
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40ad51
push 0x75e2e8
lea ecx, [ebp + 0x9bc]
call fcn.004d38e9
lea edx, [esp + 0x14]
lea ecx, [ebp + 0xb4]
push edx
call fcn.0040dca0
lea ecx, [esp + 0x14]
call fcn.004d3760
push 1
mov ecx, ebp
call fcn.0040a540
mov eax, dword [ebp + 0x1c]
push 0x30
push 0x548690
push 0x5486d0
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004d3760
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ecx, dword [ebp + 0xb8]
lea esi, [ebp + 0x80]
add ecx, 8
push ecx
mov ecx, esi
call fcn.004d3899
push esi
lea ecx, [esp + 0xc]
call fcn.004d34d5
mov edx, dword [esp + 0xc]
mov eax, dword [ebp + 0x9bc]
push edx
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004ccb09
lea eax, [esp + 8]
lea ecx, [ebp + 0x6c]
push eax
call fcn.004d3899
push eax
lea ecx, [ebp + 0x84]
call fcn.004d3899
mov eax, dword [ebp + 0x78]
cmp eax, 0xffffffff
je 0x40adb4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push 0
mov ecx, esi
call fcn.004d3b90
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x78], eax
jne 0x40ae10
lea ecx, [esp + 8]
mov byte [esp + 0x24], 0
call fcn.004d3760
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004d3760
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push ebx
lea ecx, [esp + 0x14]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x18]
push 1
push 0
push 0
push edx
mov esi, eax
call fcn.004437d0
xor ecx, ecx
add eax, esi
adc edx, ecx
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x8c], edx
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
lea edi, [eax + 0xa]
push edi
push 0x40
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, edi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov byte [ebx], 4
mov eax, dword [esp + 0x1c]
mov dword [ebx + 1], eax
mov dword [ebx + 5], esi
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x14]
lea edi, [eax + 1]
call fcn.004d3b90
mov edx, edi
mov ecx, edx
mov esi, eax
mov eax, ecx
lea edi, [ebx + 9]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 0x9a8]
push ecx
mov ecx, dword [ebp + 0x9ac]
push ebx
push edx
call fcn.00415950
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [esp + 0x20]
lea ecx, [ebp + 0xb4]
push eax
call fcn.0040dca0
lea ecx, [esp + 0x20]
call fcn.004d3760
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.004d3760
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004d3760
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret