Function at 0x401edc
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
mov byte [ebp - 9], 0
mov eax, dword [0x40c0aa]
mov dword [ebp - 0x18], eax
mov eax, dword [0x40c0ae]
mov dword [ebp - 0x14], eax
mov eax, dword [0x40c0b2]
mov dword [ebp - 0x10], eax
mov edx, dword [0x40c0b6]
mov dword [ebp - 0x24], edx
mov edx, dword [0x40c0ba]
mov dword [ebp - 0x20], edx
mov edx, dword [0x40c0be]
mov dword [ebp - 0x1c], edx
mov ecx, dword [0x40c0c2]
mov dword [ebp - 0x2c], ecx
mov cx, word [0x40c0c6]
mov word [ebp - 0x28], cx
mov eax, dword [0x40c0c8]
mov dword [ebp - 0x34], eax
mov ax, word [0x40c0cc]
mov word [ebp - 0x30], ax
mov edx, dword [0x40c0ce]
mov dword [ebp - 0x3c], edx
mov dx, word [0x40c0d2]
mov word [ebp - 0x38], dx
mov dl, byte [0x40c0d4]
mov byte [ebp - 0x36], dl
mov ecx, dword [0x40c0d5]
mov dword [ebp - 0x44], ecx
mov cx, word [0x40c0d9]
mov word [ebp - 0x40], cx
mov cl, byte [0x40c0db]
mov byte [ebp - 0x3e], cl
mov eax, dword [0x40c0dc]
mov dword [ebp - 0x50], eax
mov eax, dword [0x40c0e0]
mov dword [ebp - 0x4c], eax
mov ax, word [str.L__b3]
mov word [ebp - 0x48], ax
mov al, byte [0x40c0e6]
mov byte [ebp - 0x46], al
mov edx, dword [0x40c0e7]
mov dword [ebp - 0x58], edx
mov dl, byte [0x40c0eb]
mov byte [ebp - 0x54], dl
mov ecx, dword [0x40c0ec]
mov dword [ebp - 0x60], ecx
mov cl, byte [0x40c0f0]
mov byte [ebp - 0x5c], cl
mov eax, dword [str.9F_u]
mov dword [ebp - 0x68], eax
mov al, byte [0x40c0f5]
mov byte [ebp - 0x64], al
push 0
push dword [ebp + 0xc]
call sub.KERNEL32.DLL_GetFileSize
sub eax, 0x64
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x40216f
xor edx, edx
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 4]
jae 0x40210e
push 0xc
lea eax, [ebp - 0x18]
push eax
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
push edx
call fcn.004039cc
add esp, 0xc
test eax, eax
jne 0x402037
push 0xc
lea ecx, [ebp - 0x24]
push ecx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
push eax
call fcn.004037b0
add esp, 0xc
mov byte [ebp - 9], 1
push 6
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
push ecx
call fcn.004039cc
add esp, 0xc
test eax, eax
jne 0x402069
push 6
lea eax, [ebp - 0x34]
push eax
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
push edx
call fcn.004037b0
add esp, 0xc
mov byte [ebp - 9], 1
push 7
lea ecx, [ebp - 0x3c]
push ecx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
push eax
call fcn.004039cc
add esp, 0xc
test eax, eax
jne 0x40209b
push 7
lea edx, [ebp - 0x44]
push edx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
push ecx
call fcn.004037b0
add esp, 0xc
mov byte [ebp - 9], 1
push 0xb
lea eax, [ebp - 0x50]
push eax
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
push edx
call fcn.004039cc
add esp, 0xc
test eax, eax
jne 0x4020cd
push 5
lea ecx, [ebp - 0x58]
push ecx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
push eax
call fcn.004037b0
add esp, 0xc
mov byte [ebp - 9], 1
push 5
lea edx, [ebp - 0x60]
push edx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
push ecx
call fcn.004039cc
add esp, 0xc
test eax, eax
jne 0x4020ff
push 5
lea eax, [ebp - 0x68]
push eax
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
push edx
call fcn.004037b0
add esp, 0xc
mov byte [ebp - 9], 1
inc dword [ebp - 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 4]
jb 0x402005
cmp byte [ebp - 9], 0
je 0x40216f
inc dword [0x40e8c4]
push 0xffff
push 0xffff
push 0xb1
push 0x3ea
push dword [0x40e8bc]
call sub.USER32.DLL_SendDlgItemMessageA
push dword [ebp + 0x10]
push 1
push 0xc2
push 0x3ea
push dword [0x40e8bc]
call sub.USER32.DLL_SendDlgItemMessageA
push 0x40c338
push 1
push 0xc2
push 0x3ea
push dword [0x40e8bc]
call sub.USER32.DLL_SendDlgItemMessageA
mov esp, ebp
pop ebp
ret