Function at 0x408b09
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x23d4
call fcn.0044b790
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x10], edi
je 0x408d87
mov ebx, dword [ebp + 8]
lea esi, [ebx + 8]
call fcn.00407fba
push 0x20
lea eax, [ebp - 0x250]
push eax
push 0
push edi
call fcn.0040794c
add esp, 0x10
cmp byte [ebp - 0x238], 0x34
je 0x408d80
push edi
mov ecx, ebx
call fcn.004089d0
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0xc], eax
mov eax, 0x5000
cmp dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
jbe 0x408d80
call fcn.00412467
cmp dword [0x45b670], 0
jne 0x408d80
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
lea esi, [ebp - 0x23d0]
push edi
call fcn.00408a78
test eax, eax
je 0x408d6d
mov ebx, dword [ebp - 0x239c]
cmp ebx, 0x100
mov edi, dword [ebp - 0x2394]
mov esi, dword [ebp - 0x238c]
jbe 0x408bdd
push 0x68
pop ebx
mov eax, 0x2000
cmp edi, eax
jbe 0x408be8
mov edi, eax
cmp esi, eax
jbe 0x408bee
mov esi, eax
lea eax, [ebp - 0x1d0]
push eax
mov eax, 0x1b4
call fcn.004077b7
mov eax, dword [ebp - 0x23b0]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x237c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x23c0]
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 0x23bc]
mov dword [ebp - 0x1c4], eax
mov eax, dword [ebp - 0x23c8]
pop ecx
mov dword [ebp - 0x1d0], eax
mov eax, dword [ebp - 0x23c4]
lea ecx, [ebp + ebx - 0x23d0]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp + esi - 0x23d0]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1cc], eax
mov al, byte [ebp - 0x2398]
lea ecx, [ebp + edi - 0x23d0]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 8]
mov byte [ebp - 0x1c0], al
movzx eax, al
add ecx, 8
call fcn.004080cf
test eax, eax
jne 0x408c83
mov eax, 0x44f33c
push 9
push eax
lea edi, [ebp - 0x1bf]
call fcn.00406f13
push dword [ebp + 0xc]
lea esi, [ebp - 0x1b6]
call fcn.004071ac
call fcn.00406bac
mov ebx, 0x104
mov eax, edi
push ebx
push eax
mov edi, esi
call fcn.00407976
call fcn.00406bac
push ebx
push dword [ebp - 0x2c]
call fcn.00407976
lea esi, [ebx - 5]
push esi
xor ebx, ebx
lea eax, [ebp - 0x2cf]
push ebx
push eax
mov byte [ebp - 0x2d0], 0
call fcn.0043acc0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x2d0]
push esi
push eax
mov dword [ebp - 8], ebx
call fcn.00407de9
add esp, 0x38
jmp 0x408d55
test ebx, ebx
jne 0x408d0f
lea eax, [ebp - 0x2d0]
push 0x3f
push eax
lea edi, [ebp - 0x71]
call fcn.00406f13
pop ecx
pop ecx
lea eax, [ebp - 0x2d0]
push str.content_type:
push eax
call fcn.00406c83
test eax, eax
pop ecx
pop ecx
jl 0x408d3d
lea eax, [ebp + eax - 0x2c2]
push 0x3f
push eax
lea edi, [ebp - 0xb1]
call fcn.00406f13
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x2d0]
push esi
push eax
inc ebx
call fcn.00407de9
add esp, 0x10
test eax, eax
jne 0x408cf8
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
inc dword [ecx + 4]
lea edx, [ebp - 0x1d0]
push edx
call dword [eax]
mov edi, dword [ebp - 0x10]
add dword [ebp - 4], 0x80
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x408b8f
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8