Function at 0x401bfc
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
xor eax, eax
mov al, byte [0x408641]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov ecx, edi
push eax
mov dword [ebp - 0x14], esi
call fcn.004047a0
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00403590
add esp, 0xc
mov ecx, eax
call fcn.004047a0
push eax
mov ecx, edi
call fcn.00404b60
lea ecx, [ebp - 0x28]
call fcn.00404930
xor eax, eax
mov al, byte [0x408640]
push 0x4061b5
push eax
lea eax, [ebp - 0x28]
push 0x4061f0
push eax
call fcn.00403460
add esp, 0xc
mov ecx, eax
call fcn.004047a0
push eax
mov ecx, edi
call fcn.004045c0
lea ecx, [ebp - 0x28]
call fcn.00404930
lea ecx, [ebp - 4]
call fcn.004047b0
xor eax, eax
mov al, byte [0x408640]
push 1
push dword [ebp - 0x14]
mov ebx, 0x4061e8
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.00403460
add esp, 0xc
mov ecx, eax
call fcn.004047a0
push eax
mov ecx, edi
call fcn.00404430
lea ecx, [ebp - 0xc]
mov edi, eax
call fcn.00404930
cmp edi, 0xffffffff
je 0x401f54
xor eax, eax
mov al, byte [0x408640]
push 1
inc edi
inc dword [ebp - 0x10]
push edi
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.00403460
add esp, 0xc
mov ecx, eax
call fcn.004047a0
mov ecx, dword [ebp + 8]
push eax
call fcn.00404430
lea ecx, [ebp - 0xc]
mov edi, eax
call fcn.00404930
cmp edi, 0xffffffff
jne 0x401cc1
cmp dword [ebp - 0x10], esi
je 0x401f54
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
jle 0x401f54
lea eax, [ebp - 0x14]
push eax
xor eax, eax
mov al, byte [0x408640]
push eax
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00403460
add esp, 0xc
mov ecx, eax
call fcn.004047a0
mov ecx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00404bc0
mov ecx, eax
call fcn.004047a0
push eax
lea ecx, [ebp - 4]
call fcn.00404b60
lea ecx, [ebp - 0x2c]
call fcn.00404930
lea ecx, [ebp - 0x30]
call fcn.00404930
push 0x4061b5
lea ecx, [ebp - 4]
call fcn.00404730
test eax, eax
je 0x401d7a
inc dword [ebp - 0xc]
jmp 0x401f48
lea ecx, [ebp - 0x20]
call fcn.004047b0
or dword [ebp - 0x1c], 0xffffffff
push esi
push 0x2c
lea ecx, [ebp - 4]
call fcn.004044d0
mov edi, eax
cmp edi, 0xffffffff
je 0x401dd3
push edi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 4]
call fcn.00404a20
mov ecx, eax
call fcn.004047a0
push eax
lea ecx, [ebp - 0x20]
call fcn.00404b60
lea ecx, [ebp - 0x34]
call fcn.00404930
inc edi
push edi
push esi
lea ecx, [ebp - 4]
call fcn.00404510
lea ecx, [ebp - 0x20]
call fcn.00404700
mov dword [ebp - 0x1c], eax
push 0x2f
lea ecx, [ebp - 4]
call fcn.004047a0
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00405240
add esp, 0xc
mov ecx, eax
call fcn.004047a0
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00404ed0
pop ecx
pop ecx
mov ecx, eax
call fcn.004047a0
push eax
lea ecx, [ebp - 8]
call fcn.00404880
lea ecx, [ebp - 0x38]
call fcn.00404930
lea ecx, [ebp - 0x3c]
call fcn.00404930
push ecx
mov ecx, esp
push 0x4061b5
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], esi
call fcn.00404880
push esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push ecx
lea eax, [ebp - 4]
mov ecx, esp
push eax
call fcn.00404820
call fcn.00403990
add esp, 0x14
test eax, eax
je 0x401f35
lea ecx, [ebp - 8]
call fcn.004047a0
push eax
call dword [0x408678]
push esi
push esi
push 4
push esi
push esi
push 0x40000000
lea ecx, [ebp - 8]
call fcn.004047a0
push eax
call dword [0x40867c]
push esi
mov edi, eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x18]
push edi
call dword [0x40868c]
push edi
call dword [0x408684]
push dword [ebp - 0x18]
call fcn.00404340
pop ecx
lea ecx, [ebp - 8]
call fcn.004047a0
cmp dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x28], eax
jne 0x401ebc
push eax
call fcn.00401706
pop ecx
jmp 0x401f35
push esi
push esi
push 3
push esi
push esi
push 0x80000000
lea ecx, [ebp - 8]
call fcn.004047a0
push eax
call dword [0x40867c]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push edi
mov dword [ebp - 0x40], eax
call dword [0x408684]
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x40], eax
jne 0x401f2c
push 0x2f
lea ecx, [ebp - 4]
call fcn.004047a0
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00405240
add esp, 0xc
mov ecx, eax
call fcn.004047a0
push ecx
mov ecx, esp
push eax
call fcn.00404880
call fcn.00401713
pop ecx
lea ecx, [ebp - 0x44]
call fcn.00404930
push dword [ebp - 0x28]
jmp 0x401eb4
push dword [ebp - 0x28]
call dword [0x408678]
inc dword [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.00404930
lea ecx, [ebp - 0x20]
call fcn.00404930
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jl 0x401d14
lea ecx, [ebp - 4]
call fcn.00404930
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret