Function at 0x40d100
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5e3178
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0xb8], ebx
jne 0x40d13d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push ebx
mov ecx, ebp
call fcn.0040c800
lea eax, [ebp + 0x198]
lea ecx, [esp + 0x10]
push eax
call fcn.005c48d5
mov ecx, dword [ebp + 0x6cc]
push ebx
push ebx
push 0x1042
push ecx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d1d5
lea edi, [ebp + 0x6b0]
push esi
mov ecx, edi
call fcn.005be4a8
cmp eax, 1
jne 0x40d1d5
push ebx
lea edx, [esp + 0x20]
push esi
push edx
mov ecx, edi
call fcn.005be3be
push 0x649f40
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x34], 1
push eax
call fcn.005c4df5
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call fcn.005c4f78
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 1
call fcn.005c4b60
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 0
call fcn.005c4b60
mov ecx, dword [ebp + 0x70]
lea eax, [ebp + 0x70]
cmp dword [ecx - 8], ebx
je 0x40d20d
push 0x649f40
lea edx, [esp + 0x20]
push eax
push edx
call fcn.005c4df5
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 3
call fcn.005c4f78
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 0
call fcn.005c4b60
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebx
jne 0x40d284
push 0x6669b4
lea ecx, [ebp + 0x5b4]
call fcn.005c4ce9
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [ebp + 0xac]
call fcn.0040f030
lea ecx, [esp + 0x1c]
call fcn.005c4b60
push 1
mov ecx, ebp
call fcn.0040c800
mov edx, dword [ebp + 0x1c]
push 0x30
push 0x64ac4c
push 0x64ac98
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.005c4b60
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov eax, dword [ebp + 0xb0]
lea esi, [ebp + 0x74]
add eax, 8
mov ecx, esi
push eax
call fcn.005c4c99
lea eax, [ebp + 0x5b4]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.005c4d8f
lea eax, [esp + 0x14]
lea ecx, [ebp + 0x68]
push eax
mov byte [esp + 0x30], 4
call fcn.005c4c99
push eax
lea ecx, [ebp + 0x78]
call fcn.005c4c99
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push ebx
mov ecx, esi
call fcn.005c4f90
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40d31f
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 0
call fcn.005c4b60
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], edi
call fcn.005c4b60
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
lea ecx, [esp + 0x20]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
mov dword [ebp + 0x80], esi
mov dword [ebp + 0x84], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
lea edi, [eax + 0xa]
push edi
push 0x40
mov dword [esp + 0x20], 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], 3
mov eax, dword [esp + 0x24]
mov dword [ebx + 1], eax
mov dword [ebx + 5], esi
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x18]
lea edi, [eax + 1]
call fcn.005c4f90
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 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 0x5a0]
push ecx
mov ecx, dword [ebp + 0x5a4]
push ebx
push edx
call fcn.004127d0
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x6669b4
lea ecx, [ebp + 0x5b4]
call fcn.005c4ce9
lea eax, [esp + 0x18]
lea ecx, [ebp + 0xac]
push eax
call fcn.0040f030
lea ecx, [esp + 0x18]
call fcn.005c4b60
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 0
call fcn.005c4b60
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.005c4b60
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret